IOS 设备信息和系统信息获取大全
来源:互联网 发布:免费的看书软件 编辑:程序博客网 时间:2024/05/18 09:06
-(void)deviceInfos{
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];// app名称NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];// app版本NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];// app build版本NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];NSString * appXcodeStr =[infoDictionary objectForKey:@"DTXcode"];//Xcode 版本NSString * appSDKNameStr = [infoDictionary objectForKey:@"DTSDKName"];//SDK 的版本//手机别名: 用户定义的名称NSString* userPhoneName = [[UIDevice currentDevice] name];NSLog(@"手机别名: %@", userPhoneName);//设备名称NSString* deviceName = [[UIDevice currentDevice] systemName];NSLog(@"设备名称: %@",deviceName );//手机系统版本NSString* phoneVersionStr = [[UIDevice currentDevice] systemVersion];CGFloat phoneVersionFloat=[phoneVersionStr floatValue];// //手机序列号
// if(phoneVersionFloat<7.0){7.0以后这个方法给禁了
// NSString* identifierNumber = [UIDevice currentDevice] uniqueIdentifier];
// NSLog(@”手机序列号: %@”,identifierNumber);
// }
//可以用OpenUDID替代手机序列号的唯一性:https://github.com/ylechelle/OpenUDID
NSLog(@"手机系统版本: %@", phoneVersionStr);//手机型号NSString* phoneModel = [[UIDevice currentDevice] model];NSLog(@"手机型号: %@",phoneModel );//地方型号 (国际化区域名称)NSString* localPhoneModel = [[UIDevice currentDevice] localizedModel];NSLog(@"国际化区域名称: %@",localPhoneModel );
}
阅读全文
0 0
- IOS 设备信息和系统信息获取大全
- iOS 获取设备类型和系统信息
- ios获取设备系统信息
- iOS 获取设备系统信息
- IOS获取设备系统信息(UIDevice,NSLocale)
- iOS 获取设备或系统信息
- 获取ios设备信息
- ios 获取设备信息
- 获取iOS设备信息
- IOS获取设备信息
- iOS获取设备信息
- 获取iOS设备信息
- 获取iOS设备信息
- iOS 设备信息获取
- iOS 获取设备信息
- iOS 获取设备信息
- iOS获取设备信息
- ios获取设备信息
- Linux_Nginx 安装笔记
- curl 调用接口报错 Protocol http not supported or disabled in libcurl
- android中如何实现进入一个界面不做任何动作过10秒钟(有操作从新计时)自动跳转到待机activity,点击待机界面回到原来的界面
- 龙芯推出新一代处理器 离Intel还有多大差距
- 40个Java多线程问题总结
- IOS 设备信息和系统信息获取大全
- Android ADB工具-管理设备 app(二)
- C++ 获取所有USB设备 列举所有USB设备 列举所有USB HUB
- JS中URL中的特殊字符问题:escape,encodeURI,encodeURIComponent(转)
- iOS_数学函数Math Functions(计算,取整,平方立方,等等)
- H264中的SPS、PPS提取与作用
- Redis 缓存 + Spring 的集成示例
- 事件通知实现界面间的数据交互
- mysql 数据导入导出