打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
教你如何获取ios系统信息
教你如何获取ios系统信息
NSString *deviceID = [UIDevice currentDevice] uniqueIdentifier];//设备id
// NSString *deviceID = [UIApplication sharedApplication] uuid];
NSString *systemVersion = [UIDevice currentDevice] systemVersion];//系统版本
NSString *systemModel = [UIDevice currentDevice] model];//是iphone 还是 ipad
NSDictionary *dic = [NSBundle mainBundle] infoDictionary];//获取info-plist
NSString *appName = [dic objectForKey:@"CFBundleIdentifier"];//获取Bundle identifier
NSString *appVersion = [dic valueForKey:@"CFBundleVersion"];//获取Bundle Version
NSDictionary *userInfo = [NSDictionary alloc] initWithObjectsAndKeys:
    deviceID, @"deviceID",
    systemVersion, @"systemVersion",
    systemModel, @"systemModel",
    appName, @"appName",
    appVersion, @"appVersion",nil];
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Swift开发之
解决iOS项目的版本兼容问题
在iOS 7,如何检测到系统自带ViewController手势返回结束
IOS适配屏幕
获取手机信息(UIDevice、NSBundle、NSLocale)
ios获取设备信息总结
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服