美文网首页
IOS 获取当前 APP 信息和手机设备信息

IOS 获取当前 APP 信息和手机设备信息

作者: panzhangbao | 来源:发表于2017-07-25 11:32 被阅读10次
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];

// app名称
NSString *appName = [infoDictionary objectForKey:@"CFBundleDisplayName"];
    
// app版本
NSString *appVersion = [infoDictionary objectForKey:@"CFBundleShortVersionString"];

// app build版本
NSString *appBuild = [infoDictionary objectForKey:@"CFBundleVersion"];


//手机别名: 用户定义的名称
NSString* userPhoneName = [[UIDevice currentDevice] name];
    
//设备名称(iOS)
NSString* deviceName = [[UIDevice currentDevice] systemName];

//手机系统版本
NSString* phoneVersion = [[UIDevice currentDevice] systemVersion];

// UUID
NSUUID *UUID = [[UIDevice currentDevice] identifierForVendor];
NSLog(@"UUID:%@", UUID.UUIDString);
    
//手机型号(iPhone)
NSString* phoneModel = [[UIDevice currentDevice] model];

//地方型号  (国际化区域名称)(iPhone)
NSString* localPhoneModel = [[UIDevice currentDevice] localizedModel];

相关文章

网友评论

      本文标题:IOS 获取当前 APP 信息和手机设备信息

      本文链接:https://www.haomeiwen.com/subject/xydwkxtx.html