首页 > 移动平台 > 详细

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

时间:2017-06-24 13:10:33      阅读:359      评论:0      收藏:0      [点我收藏+]

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

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

原文:http://www.cnblogs.com/lytwajue/p/7073051.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!