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];
如何获取ios系统信息
最新推荐文章于 2023-04-09 18:47:36 发布
本文介绍了一种使用Objective-C从iOS设备上获取包括设备ID、系统版本、设备类型、应用名称及版本等信息的方法。

1305

被折叠的 条评论
为什么被折叠?



