首页 > 移动平台 > 详细

[转载]iOS开发:获取设备信息

时间:2016-01-03 00:27:18      阅读:252      评论:0      收藏:0      [点我收藏+]

开发iOS平台的应用的时候,可以获取iOS设备的设备信息,包括设备的名称,设备的机型,设备的iOS版本等等。设备信息主要来自 UIDevice 类。

UIDevice *currentDevice = [UIDevice currentDevice];
NSString *strName = currentDevice.name;    //设备名称
NSString *strModel = currentDevice.model;    //设备类别
NSString *strLocalizedModel = currentDevice.localizedModel;    //设备本地化版本
NSString *strSystemName = currentDevice.systemName;    //设备运行的系统
NSString *strSystemVersion = currentDevice.systemVersion;    //当前系统版本
NSString *strUUIDString = currentDevice.identifierForVendor.UUIDString;    //系统识别码

原文地址:http://www.jianshu.com/p/20b5ed0cf2d3

[转载]iOS开发:获取设备信息

原文:http://www.cnblogs.com/yuen/p/5095553.html

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