首页 > 移动平台 > 详细

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

时间:2015-06-30 18:33:10      阅读:130      评论: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://blog.csdn.net/shaobo8910/article/details/46696905

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