您好,欢迎来到二三娱乐。
搜索
您的当前位置:首页IOS 获取当前 APP 信息和手机设备信息

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

来源:二三娱乐
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];

Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务