获取Model(设备型号)、Version(设备版本号)、app(程序版本

NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]); NSLog(@"name: %@", [[UIDevice currentDevice] name]); NSLog(@"systemName: %@", [[UIDevice currentDevice] systemName]); NSLog(@"systemVersion: %@", [[UIDevice currentDevice] systemVersion]); NSLog(@"model: %@", [[UIDevice currentDevice] model]); NSLog(@"localizedModel: %@", [[UIDevice currentDevice] localizedModel]);

NSDictionary*infoDictionary = [[NSBundle mainBundle]infoDictionary];

CFShow(infoDictionary);

// app名称

NSString*app_Name = [infoDictionaryobjectForKey:@"CFBundleDisplayName"];

// app版本

NSString*app_Version = [infoDictionaryobjectForKey:@"CFBundleShortVersionString"];

// app build版本

NSString*app_build = [infoDictionaryobjectForKey:@"CFBundleVersion"];

,车到山前必有路,没路可以先开路,开路就得有乐观,

获取Model(设备型号)、Version(设备版本号)、app(程序版本

相关文章:

你感兴趣的文章:

标签云: