你如何得到一个iPhone的设备名称
如果你打开设置 – >常规 – >关于,它会在屏幕上方说“鲍勃的iPhone”。 你如何以编程方式抓住这个名字?
从UIDevice类: 
 举个例子: [[UIDevice currentDevice] name]; 
UIDevice是一个提供有关iPhone或iPod Touch设备信息的类。
UIDevice提供的一些信息是静态的,例如设备名称或系统版本。
来源: http : //servin.com/iphone/uidevice/iPhone-UIDevice.html
  官方文档: 苹果的iPhone参考库 – > UIDevice类参考 
除了上面的答案,这是实际的代码:
 [[UIDevice currentDevice] name]; 
迅速:
 UIDevice.currentDevice().name 
Swift 3:
 UIDevice.current.name 
这里是UIDevice的类结构
 + (UIDevice *)currentDevice; @property(nonatomic,readonly,strong) NSString *name; // eg "My iPhone" @property(nonatomic,readonly,strong) NSString *model; // eg @"iPhone", @"iPod touch" @property(nonatomic,readonly,strong) NSString *localizedModel; // localized version of model @property(nonatomic,readonly,strong) NSString *systemName; // eg @"iOS" @property(nonatomic,readonly,strong) NSString *systemVersion; 
对于xamarin用户,使用这个
 UIKit.UIDevice.CurrentDevice.Name 
以编程方式获取iPhone的设备名称
  UIDevice *deviceInfo = [UIDevice currentDevice]; NSLog(@“Device name: %@”, deviceInfo.name); 
//设备名称:我的iPod