iOS-获取Model(设备型号)、Version(设备版本号)、app(程序版本号)等
2015-06-30 15:59
435 查看
IOS-获取Model(设备型号)、Version(设备版本号)、app(程序版本号)等
NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]);NSLog(@"name: %@", [[UIDevice currentDevice] name]);
NSLog(@"systemName: %@", [[UIDevice currentDevice] systemName]);
NSLog(@"systemVersion: %@", [[UIDevice currentDevice] systemVersion]);
NSLog(@"model: %@", [[UIDevice currentDevice] model]);
NSLog(@"localizedModel: %@", [[UIDevice currentDevice] localizedModel]);
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
CFShow(infoDictionary);
// app名称
NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
// app版本
NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
// app build版本
NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];
相关文章推荐
- iOS自动化测试辅助工具--Reveal配置及使用
- objective-c类初始化
- 关于Android单元测试的几种框架
- iOS开发拓展篇—静态库
- AES128加密解密方法
- Android Studio project有多个module情况下安装到手机出现多个app问题
- Android Instrumentation模拟鼠标点击事件
- Android动画分类及编写方式(view Animation/Tween Animation)视图动画(一个对象的变形)
- Drag and Drop Android API
- [原]通过 dumpsys SurfaceFlinger 分析Android 系统图层
- Coroutine couldn't be started because the the game object 'GameController' is inactive!
- Android Fragment详解
- Android Fragment详解
- Android手机的休眠状态
- Understanding the Objective-C Runtime
- ecmobile实现支付宝支付和百度云推送遇到的问题及解决方案(android)
- iOS ibeacon后台运行相关文章
- 微信公众号一键关注解决办法
- Android 百分比布局库(percent-support-lib) 解析与扩展
- 我的APP