如何获取ios系统信息

如何获取ios系统信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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];
-------------本文结束感谢阅读-------------