Ios – How to get an iPhone’s device name


If you open Settings -> General -> About, it'll say Bob's iPhone at the top of the screen. How do you programmatically grab that name?

Best Solution

From the UIDevice class:

Swift version:

Objective-C version:

[[UIDevice currentDevice] name];

The UIDevice is a class that provides information about the iPhone or iPod Touch device.

Some of the information provided by UIDevice is static, such as device name or system version.


Offical Documentation: Apple Developer Documentation > UIDevice Class Reference