获取IOS设备的代码
2015-10-13 10:28
344 查看
- (void)viewDidLoad {
[super viewDidLoad];
NSString *systemName = [[UIDevice currentDevice] systemName];
NSString *systemVersion = [[UIDevice currentDevice] systemVersion];//os version
NSString *model = [[UIDevice currentDevice] model];
NSString * name = [[UIDevice currentDevice] name];
NSLog(@"%@",systemVersion);
NSLog(@"%@",systemName);
NSLog(@"%@",model);
NSLog(@"%@",name);
}
[super viewDidLoad];
NSString *systemName = [[UIDevice currentDevice] systemName];
NSString *systemVersion = [[UIDevice currentDevice] systemVersion];//os version
NSString *model = [[UIDevice currentDevice] model];
NSString * name = [[UIDevice currentDevice] name];
NSLog(@"%@",systemVersion);
NSLog(@"%@",systemName);
NSLog(@"%@",model);
NSLog(@"%@",name);
}
相关文章推荐
- IOS设备判断
- 苹果移动操作系统iOS 8的8个被忽略亮点功能
- 让Xcode 生成的ipa支持老的iOS设备(armv6)
- APNs
- 苹果开发者账号区别
- 获取iOS设备型号的方法总结
- iOS开发者必备:五大编程类工具
- React.js在ios设备上onClick事件失效的解决办法
- ios 硬件设备获取
- ios 设备唯一标识
- 关于iOS App Programming
- “iOS 推送通知”详解:从创建到设置到运行
- IOS 设备 通过HTML页面在线安装APP配置(面向越狱设备或者有开发者账号调试APP)
- ios设备中,armv6/armv7架构的机器有哪些?
- IOS设备信息判断
- IOS-如何隐藏你的应用程序
- iOS7或以后将不能使用MAC地址生成设备的唯一标识
- iOS 开发之:iOS字体设置
- 使用Cocos2D-x引擎在Mac下开发运行在iOS设备上的《植物大战僵尸》第一篇
- 获得当前IOS设备的型号