ios获取硬件信息
2014-12-01 18:55
204 查看
主要是为了给自己看的,有点记不住:
- (void)viewDidLoad {
[super viewDidLoad];
//联系人
NSString *strName = [[UIDevice currentDevice] name];
NSLog(@"设备名称:%@",
strName);//e.g. "My iPhone"
NSUUID *strId = [[UIDevice currentDevice] identifierForVendor];
NSLog(@"设备唯一标识:%@",
strId);//
NSString *strSysName = [[UIDevice currentDevice]systemName];
NSLog(@"版本名称%@",strSysName);
NSString *strSysVersion = [[UIDevice currentDevice]systemVersion];
NSLog(@"版本号%@",strSysVersion);
NSString *strModel1 = [[UIDevice currentDevice] model];
NSLog(@"设备模式:%@",strModel1);
NSString *strLocModel = [[UIDevice currentDevice] localizedModel];
NSLog(@"本地设备模式:%@",strLocModel);
//app应用相关信息的获取
NSDictionary *dicInfo = [[NSBundle mainBundle] infoDictionary];
NSLog(@"dicInfo :%@",dicInfo);
NSString *strAppName = [dicInfo objectForKey:@"CFBundleName"];
NSLog(@"app应用名称:%@",strAppName);
NSString *strAppVersion = [dicInfo objectForKey:@"CFBundleShortVersionString"];
NSLog(@"应用版本信息:%@ - %@",strAppVersion,[dicInfo
objectForKey:(NSString *)kCFBundleVersionKey]);
NSString *strAppBuild = [dicInfo objectForKey:@"CFBundleVersion"];
NSLog(@"App应用BUild版本:%@",strAppBuild);
}
- (void)viewDidLoad {
[super viewDidLoad];
//联系人
NSString *strName = [[UIDevice currentDevice] name];
NSLog(@"设备名称:%@",
strName);//e.g. "My iPhone"
NSUUID *strId = [[UIDevice currentDevice] identifierForVendor];
NSLog(@"设备唯一标识:%@",
strId);//
NSString *strSysName = [[UIDevice currentDevice]systemName];
NSLog(@"版本名称%@",strSysName);
NSString *strSysVersion = [[UIDevice currentDevice]systemVersion];
NSLog(@"版本号%@",strSysVersion);
NSString *strModel1 = [[UIDevice currentDevice] model];
NSLog(@"设备模式:%@",strModel1);
NSString *strLocModel = [[UIDevice currentDevice] localizedModel];
NSLog(@"本地设备模式:%@",strLocModel);
//app应用相关信息的获取
NSDictionary *dicInfo = [[NSBundle mainBundle] infoDictionary];
NSLog(@"dicInfo :%@",dicInfo);
NSString *strAppName = [dicInfo objectForKey:@"CFBundleName"];
NSLog(@"app应用名称:%@",strAppName);
NSString *strAppVersion = [dicInfo objectForKey:@"CFBundleShortVersionString"];
NSLog(@"应用版本信息:%@ - %@",strAppVersion,[dicInfo
objectForKey:(NSString *)kCFBundleVersionKey]);
NSString *strAppBuild = [dicInfo objectForKey:@"CFBundleVersion"];
NSLog(@"App应用BUild版本:%@",strAppBuild);
}
相关文章推荐
- 获取ios 系统 硬件信息
- iOS如何获取设备硬件信息
- Java 程序获取系统硬件信息之网卡MAC地址
- .net中获取机器硬件信息
- 使用脚步(Javascript)获取机器硬件信息
- .net中如何获取机器硬件信息(防软件复制版)
- c# 获取硬件配置信息
- .net中如何获取机器硬件信息(防软件复制版)
- WebService获取服务端硬件信息和客户端IP,MAC,浏览器信息,所在城市-
- .net中如何获取机器硬件信息(防软件复制版)
- .net中如何获取机器硬件信息(防软件复制版)
- .net获取硬件信息一些小帮助
- .net中获取机器硬件信息
- .NET中获取系统硬件信息
- VB中使用WMI获取系统硬件和软件有关信息
- VB中使用WMI获取系统硬件和软件有关信息
- .net 获取机器硬件信息
- 获取服务器的硬件信息
- c# 获取硬件信息
- C# 获取机器的硬件信息(CPU ID序列号, 主板信息,硬盘序列号,系统信息)