如何獲取ios系統(tǒng)信息
NSString *deviceID? =? [[UIDevice currentDevice] uniqueIdentifier];//設(shè)備id
// NSString *deviceID? =? [[UIApplication sharedApplication] uuid];
NSString *systemVersion? =? [[UIDevice currentDevice] systemVersion];//系統(tǒng)版本
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];