ios 获取ios系统信息
2016-03-04 14:24
387 查看
- (void)viewDidLoad {
[super
viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSString * systemVersion =[[UIDevice
currentDevice]systemVersion];
NSLog(@"系统版本---%@",systemVersion);
NSString * systemModel =[[UIDevice
currentDevice]model];
NSLog(@"iphone or ipad ----%@",systemModel);
NSDictionary * dic =[[NSBundle
mainBundle]infoDictionary];
NSLog(@"获取info-plist----%@",dic);
NSString * appName =[dic
objectForKey:@"CFBundleIdentifier"];
NSLog(@"获取Bundle Identifier---%@",appName);
}
[super
viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSString * systemVersion =[[UIDevice
currentDevice]systemVersion];
NSLog(@"系统版本---%@",systemVersion);
NSString * systemModel =[[UIDevice
currentDevice]model];
NSLog(@"iphone or ipad ----%@",systemModel);
NSDictionary * dic =[[NSBundle
mainBundle]infoDictionary];
NSLog(@"获取info-plist----%@",dic);
NSString * appName =[dic
objectForKey:@"CFBundleIdentifier"];
NSLog(@"获取Bundle Identifier---%@",appName);
}
相关文章推荐
- iOS CoreData数据迁移-迁移管理器迁移数据
- ios单例写法
- 让你的程序“飞”起来——性能优化
- IOS9 wifi助理
- iOS数组按中文关键字以字母序排序
- iOS 蓝牙开发那些事
- 一步步创建自己的 iOS 框架
- iOS 判断iphone ipad 系统版本
- iOS 数组排序
- iOS开发---计算两个日期的时间差
- iOS学习----------多线程(NSThread/GCD/NSOperation)
- 测试驱动下的iOS应用开发
- iOS深复制浅复制
- iOS推送开关
- iOS 并发:NSOperation 与调度队列入门(1)
- iOS 并发:NSOperation 与调度队列入门(1)
- 【Xamarin挖墙脚系列:Xamarin.IOS的程序的结构】
- iOS缓存
- iOS之手动内存管理
- ios自定义下拉列表