首页 > 其他 > 详细

获取设备的信息

时间:2014-08-12 13:10:54      阅读:361      评论:0      收藏:0      [点我收藏+]
    1. NSLog(@"globallyUniqueString=%@",[[NSProcessInfo processInfo] globallyUniqueString]);//全球唯一标识  
    2. NSLog(@"uniqueIdentifie=%@",[UIDevice currentDevice].uniqueIdentifier);//唯一的标识 可用于区分设备  
    3. NSLog(@"name=%@",[UIDevice currentDevice].name);//设备的名称  李四的 iPad、王五的 iPad .。。  
    4. NSLog(@"systemName=%@",[UIDevice currentDevice].systemName);//系统的名称  iPhone OS  
    5. NSLog(@"systemVersion=%@",[UIDevice currentDevice].systemVersion);//设备系统的版本号  5.1.1、6.0  
    6. NSLog(@"model=%@",[UIDevice currentDevice].model);//设备的型号   iPad、iphone、ipod touch。。。  
    7. NSLog(@"localizedModel=%@",[UIDevice currentDevice].localizedModel);//本地化的模型  iPad  
    8. NSLog(@"batteryLevel=%lf",[UIDevice currentDevice].batteryLevel);//电池电量 

获取设备的信息,布布扣,bubuko.com

获取设备的信息

原文:http://www.cnblogs.com/wlcc/p/3906954.html

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