获取iphone的设备信息
2015-06-03 15:17
423 查看
uniqueIdentifier – identifier guaranteed to be unique for every device
name – arbitrary name found in General > About setting on device
systemName – name of the OS running on the device
systemVersion – current version of the OS
model- model, such as ”iPhone” or ”iPod touch”
localizedModel – same as above using a localized string
-------------------------------------------------------------------------------------------------------------------------------
iphone simulator:
2010-10-15 09:20:43.661 SmartRoadShow[1404:207] uniqueIdentifier: 759A9CA7-F880-5BB3-B225-9CE89ABF1B0D
2010-10-15 09:20:43.662 SmartRoadShow[1404:207] name: iPhone Simulator
2010-10-15 09:20:43.662 SmartRoadShow[1404:207] systemName: iPhone OS
2010-10-15 09:20:43.663 SmartRoadShow[1404:207] systemVersion: 4.0.2
2010-10-15 09:20:43.663 SmartRoadShow[1404:207] model: iPhone Simulator
2010-10-15 09:20:43.664 SmartRoadShow[1404:207] localizedModel: iPhone Simulator
name – arbitrary name found in General > About setting on device
systemName – name of the OS running on the device
systemVersion – current version of the OS
model- model, such as ”iPhone” or ”iPod touch”
localizedModel – same as above using a localized string
@property(nonatomic,readonly,retain) NSString*name;// e.g. "My iPhone" @property(nonatomic,readonly,retain) NSString*model; // e.g. @"iPhone", @"iPod Touch" @property(nonatomic,readonly,retain) NSString*localizedModel;// localized version of model @property(nonatomic,readonly,retain) NSString*systemName;// e.g. @"iPhone OS" @property(nonatomic,readonly,retain) NSString*systemVersion; // e.g. @"2.0" @property(nonatomic,readonly) UIDeviceOrientation orientation; // return current device orientation @property(nonatomic,readonly,retain) NSString*uniqueIdentifier; NSLog(@"uniqueIdentifier: %@", [[UIDevicecurrentDevice] uniqueIdentifier]); NSLog(@"name: %@", [[UIDevicecurrentDevice] name]); NSLog(@"systemName: %@", [[UIDevicecurrentDevice] systemName]); NSLog(@"systemVersion: %@", [[UIDevicecurrentDevice] systemVersion]); NSLog(@"model: %@", [[UIDevicecurrentDevice] model]); NSLog(@"localizedModel: %@", [[UIDevicecurrentDevice] localizedModel]);
-------------------------------------------------------------------------------------------------------------------------------
iphone simulator:
2010-10-15 09:20:43.661 SmartRoadShow[1404:207] uniqueIdentifier: 759A9CA7-F880-5BB3-B225-9CE89ABF1B0D
2010-10-15 09:20:43.662 SmartRoadShow[1404:207] name: iPhone Simulator
2010-10-15 09:20:43.662 SmartRoadShow[1404:207] systemName: iPhone OS
2010-10-15 09:20:43.663 SmartRoadShow[1404:207] systemVersion: 4.0.2
2010-10-15 09:20:43.663 SmartRoadShow[1404:207] model: iPhone Simulator
2010-10-15 09:20:43.664 SmartRoadShow[1404:207] localizedModel: iPhone Simulator
相关文章推荐
- iOS 7 SDK: 如何使用后台获取(Background Fetch)
- Hadoop中的辅助类ToolRunner和Configured的用法详解
- 1156: 钟
- iOS生成随机数
- oracle 11g expdp impdp详细使用方法
- 【leetcode c++】twoSum
- Android SlidingMenu 使用详解
- 前端学习笔记之页面制作(三)——HTML
- 前端学习笔记之页面制作(二)——开发环境Sublime Text2(持续更新)
- 我们常用的测试管理工具—JIRA篇
- 里程计、推算定位与视觉里程计
- 关于FVID2_Frame结构体的一点疑惑
- 优秀的程序员和一般的程序员差别在哪?
- android helloworld级别学习
- oracle中LAG()和LEAD()等分析统计函数的使用方法(统计月增长率)
- 《Entity Framework 6 Recipes》中文翻译系列 (39) ------ 第七章 使用对象服务之配置模型和使用单复数服务
- 关于iReport汉化版强制使用英文的配置方法
- Android DiskLruCache完全解析,硬盘缓存的最佳方案
- 怎么和陌生人说话
- 一个简单打开D盘所有文件夹和文件的例子以及动态创建双击事件