首页 > 其他 > 详细

[UIDevice currentDevice]

时间:2014-09-19 17:38:55      阅读:282      评论:0      收藏:0      [点我收藏+]

获取iphone的系统信息使用[UIDevice currentDevice],信息如下:


[[UIDevice currentDevice] systemName]:系统名称,如iPhone OS

[[UIDevice currentDevice] systemVersion]:系统版本,如iOS 8.0

[[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

[UIDevice currentDevice].batteryState  设备的电池状态

[UIDevice currentDevice].batteryLevel  设备的电池充电状况

[UIDevice currentDevice].userInterfaceIdiom  用户当前使用的设备,与model类似


[UIDevice currentDevice]

原文:http://blog.csdn.net/u012889435/article/details/39400067

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!