获取iphone的系统信息使用[UIDevice currentDevice],信息如下:
[[UIDevice currentDevice] systemName]:系统名称,如iPhone OS
[[UIDevice currentDevice] systemVersion]:系统版本,如4.2.1
[[UIDevice currentDevice] model]:The model of the device,如iPhone或者iPod touch
[[UIDevice currentDevice] uniqueIdentifier]:设备的惟一标识号,deviceID
[[UIDevice currentDevice] name]:设备的名称,如 张三的iPhone
[[UIDevice currentDevice] localizedModel]:The model of the device as a localized string,类似model
[[NSBundle mainBundle] infoDictionary] 包含了应用的一些进本信息,如版本号,idk,app名称等一些信息
本文介绍了如何使用UIDevice API来获取iPhone设备的各种系统信息,包括系统名称、版本、型号、唯一标识符及设备名称等内容。
256

被折叠的 条评论
为什么被折叠?



