NSLog(@"设备名称: %@",[UIDevice currentDevice].name);
NSLog(@"设备model: %@",[UIDevice currentDevice].model);
NSLog(@"设备localizedModel: %@",[UIDevice currentDevice].localizedModel);
NSLog(@"设备systemName: %@",[UIDevice currentDevice].systemName);
NSLog(@"设备systemVersion: %@",[UIDevice currentDevice].systemVersion);
NSLog(@"设备UUID: %@",[UIDevice currentDevice].identifierForVendor);
NSLog(@"设备orientation: %ld",[UIDevice currentDevice].orientation);
//打开检测电池状态
[UIDevice currentDevice].batteryMonitoringEnabled = YES;
//需要在真机上面
NSLog(@"电池batteryState: %ld",[UIDevice currentDevice].batteryState);
NSLog(@"设备batteryLevel: %f",[UIDevice currentDevice].batteryLevel);
NSDictionary *dicInfo = [[NSBundle mainBundle] infoDictionary];
// CFShow(dicInfo);
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);
NSArray *languageArray = [NSLocale preferredLanguages];
NSString *language = [languageArray objectAtIndex:0];
NSLog(@"语言:%@", language);//en
NSLocale *locale = [NSLocale currentLocale];
NSString *country = [locale localeIdentifier];
NSLog(@"国家:%@", country); //en_US
网友评论