- NSString *strName = [[UIDevice currentDevice] name];
- NSLog(@"设备名称:%@", strName);
-
- NSString *strId = [[UIDevice currentDevice] uniqueIdentifier];
- NSLog(@"设备唯一标识:%@", strId);
-
- NSString *strSysName = [[UIDevice currentDevice] systemName];
- NSLog(@"系统名称:%@", strSysName);
-
- NSString *strSysVersion = [[UIDevice currentDevice] systemVersion];
- NSLog(@"系统版本号:%@", strSysVersion);
-
- NSString *strModel = [[UIDevice currentDevice] model];
- NSLog(@"设备模式:%@", strModel);
-
- NSString *strLocModel = [[UIDevice currentDevice] localizedModel];
- NSLog(@"本地设备模式:%@", strLocModel);
-
- float version = [[[UIDevice currentDevice] systemVersion] floatValue];
- NSLog(@"版本号:%f\n", version);
-
-
- NSDictionary *dicInfo = [[NSBundle mainBundle] infoDictionary];
-
- NSString *strAppName = [dicInfo objectForKey:@"CFBundleDisplayName"];
- NSLog(@"App应用名称:%@", strAppName);
-
- NSString *strAppVersion = [dicInfo objectForKey:@"CFBundleShortVersionString"];
- NSLog(@"App应用版本:%@", strAppVersion);
-
- NSString *strAppBuild = [dicInfo objectForKey:@"CFBundleVersion"];
- NSLog(@"App应用Build版本:%@", strAppBuild);
但是,在IOS5之后,原来获取IPhone的Device Id的接口:
[[UIDevice currentDevice] uniqueIdentifier] 被废弃了。