iOS 获取app基本信息
来源:互联网 发布:java商场系统 jeshop 编辑:程序博客网 时间:2024/05/16 07:22
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”];
//手机序列号 NSString* identifierNumber = [[UIDevice currentDevice] uniqueIdentifier]; NSLog(@"手机序列号: %@",identifierNumber); //手机别名: 用户定义的名称 NSString* userPhoneName = [[UIDevice currentDevice] name]; NSLog(@"手机别名: %@", userPhoneName); //设备名称 NSString* deviceName = [[UIDevice currentDevice] systemName]; NSLog(@"设备名称: %@",deviceName ); //手机系统版本 NSString* phoneVersion = [[UIDevice currentDevice] systemVersion]; NSLog(@"手机系统版本: %@", phoneVersion); //手机型号 NSString* phoneModel = [[UIDevice currentDevice] model]; NSLog(@"手机型号: %@",phoneModel ); //地方型号 (国际化区域名称) NSString* localPhoneModel = [[UIDevice currentDevice] localizedModel]; NSLog(@"国际化区域名称: %@",localPhoneModel ); NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; // 当前应用名称 NSString *appCurName = [infoDictionary objectForKey:@"CFBundleDisplayName"]; NSLog(@"当前应用名称:%@",appCurName); // 当前应用软件版本 比如:1.0.1 NSString *appCurVersion = [infoDictionary objectForKey:@"CFBundleShortVersionString"]; NSLog(@"当前应用软件版本:%@",appCurVersion); // 当前应用版本号码 int类型 NSString *appCurVersionNum = [infoDictionary objectForKey:@"CFBundleVersion"]; NSLog(@"当前应用版本号码:%@",appCurVersionNum);
阅读全文
0 0
- iOS 获取app基本信息
- IOS-获取设备和app基本信息
- IOS获取当前App的基本信息
- iOS 获取App基本信息:名称,版本等
- ios获取设备基本信息
- 获取App应用系统基本信息 → AppSysMgr
- 获取APP基本信息的几个步骤
- iOS 常用技术 — 获取手机基本信息
- Android App 获取设备基本信息(yoos、懂你)
- 【笔记】PackageManager获取App基本信息实现Apk导出、分享、卸载
- 获取IOS App版本
- ios获取app版本号
- 获取IOS App版本
- ios获取app版本号
- iOS获取App版本号
- iOS 获取app版本
- 获取iOS app资源
- 获取IOS APP Icon
- 事件冒泡、事件捕获与事件委托
- thymeleaf遍历map集合输出key+value
- linux 安装apache
- 自学笔记:用python和opencv进行摄像头的人脸检测
- (一)java基础篇笔记库(10)
- iOS 获取app基本信息
- 第8章 多态
- 面向对象:我想欣赏你,宠爱你,照顾你
- 趣图:如果打扫房子像清理代码…
- 砸 4 亿重返 Windows ,慕尼黑正式叫停 Linux 计划
- js 事件多次执行
- 《VMware12安装Ubuntu15.04-desktop》
- Tornado2.2.1 for PowerPC安装包下载
- SQL数据库查询LIMIT 数据分页