scelis / UIDevice-DisplayName

Returns a friendly name for any iOS device.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIDevice-DisplayName

displayName Returns a friendly name for an iOS device.

displayModelName Returns a shorter friendly name for an iOS device by only including the device model (leaving out celluar type, i.e iPhone 5 GSM will be iPhone 5)

License

UIDevice-DisplayName is available under the MIT license. See the LICENSE file for more info.

Usage

NSLog("Device Display Name: %@", UIDevice.currentDevice().displayName())

NSLog("Device Display Name With Type: %@", UIDevice.currentDevice().displayName(includeType: true))

About

Returns a friendly name for any iOS device.

License:MIT License


Languages

Language:Swift 93.0%Language:Ruby 7.0%