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

来源:互联网 发布:新sat 知乎 编辑:程序博客网 时间:2024/04/27 20:48

转载自:http://blog.csdn.net/xunyn/article/details/12144937

  

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

分类: IOS开发 270人阅读 评论(0) 收藏 举报
appnsstring

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"];

0 0
原创粉丝点击