常见的程序的属性获取(版本号,bundle id 等)
来源:互联网 发布:动漫软件下载 编辑:程序博客网 时间:2024/05/16 11:02
NSString *deviceID = [UIDevice currentDevice] uniqueIdentifier];//设备id
// NSString *deviceID = [UIApplication sharedApplication] uuid];
NSString *systemVersion = [UIDevice currentDevice] systemVersion];//系统版本
NSString *systemModel = [UIDevice currentDevice] model];//是iphone 还是 ipad
NSDictionary *dic = [NSBundle mainBundle] infoDictionary];//获取info-plist
NSString *appName = [dic objectForKey:@"CFBundleIdentifier"];//获取Bundle identifier
NSString *appVersion = [dic valueForKey:@"CFBundleVersion"];//获取Bundle Version
NSDictionary *userInfo = [NSDictionary alloc] initWithObjectsAndKeys:
deviceID, @"deviceID",
systemVersion, @"systemVersion",
systemModel, @"systemModel",
appName, @"appName",
appVersion, @"appVersion",nil];
0 0
- 常见的程序的属性获取(版本号,bundle id 等)
- iOS获取当前版本号 Bundle Id等信息的方法
- iOS获取当前版本号 Bundle ID等信息的方法
- 获取程序的版本号
- target.getAttribute获取调用这个程序的元素的属性或id等
- 获取程序本身的版本号
- 获取当前程序的版本号
- VC 获取程序的版本号
- 获取程序本身的版本号
- 获取当前程序的版本号
- 获取程序版本号等信息
- AppUtils获取版本号等(转的他人的)
- Android获取手机的版本号等信息
- IOS获取手机所有应用的Bundle id
- runtime 获取设备上所有App的bundle id
- xcode代码获取当前手机、pad的Bundle ID
- iOS逆向 获取手机所有app的bundle Id
- 获取程序集版本号的代码
- IP路由查找的“最长匹配原则”
- iOS 中 block简单笔记
- Java注解解析(二)
- 求整数A和整数B的二进制表示中有多少位是不同的?
- springmvc + jquery datatable + ajax实现服务端动态分页查询
- 常见的程序的属性获取(版本号,bundle id 等)
- One Line of Working Code Is Worth 500 of Specification
- MyBatis学习(3)------------数据库配置以及属性名冲突问题
- 2020 绝对值排序
- Hdu 1950 bridging signals
- jQuery缓存数据——仿Map
- It’s Never Too Early to Think About Performance
- HDU 4287 Intelligent IME
- HDU 5336 XYZ and Drops