首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

IOS-获取Model(装置型号)、Version(设备版本号)、app(程序版本号)等

2012-11-07 
IOS-获取Model(设备型号)、Version(设备版本号)、app(程序版本号)等NSLog(@uniqueIdentifier: %@, [[UIDev

IOS-获取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 = [infoDictionary objectForKey:@"CFBundleDisplayName"]; // app版本 NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"]; // app build版本 NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];


热点排行