预览加载中,请您耐心等待几秒...
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

ios获取操作系统版本获取iphone的系统信息使用[UIDevicecurrentDevice],信息如下:[[UIDevicecurrentDevice]systemName]:系统名称,如iPhoneOS[[UIDevicecurrentDevice]systemVersion]:系统版本,如4.2.1[[UIDevicecurrentDevice]model]:Themodelofthedevice,如iPhone或者iPodtouch[[UIDevicecurrentDevice]uniqueIdentifier]:设备的惟一标识号,deviceID[[UIDevicecurrentDevice]name]:设备的名称,如张三的iPhone[[UIDevicecurrentDevice]localizedModel]:Themodelofthedeviceasalocalizedstring,类似modelNSDictionary*infoDictionary=[[NSBundlemainBundle]infoDictionary];CFShow(infoDictionary);//app名称NSString*app_Name=[infoDictionaryobjectForKey:@"CFBundleDisplayName"];//app版本NSString*app_Version=[infoDictionaryobjectForKey:@"CFBundleShortVersionString"];//appbuild版本NSString*app_build=[infoDictionaryobjectForKey:@"CFBundleVersion"];//手机序列号NSString*identifierNumber=[[UIDevicecurrentDevice]uniqueIdentifier];NSLog(@"手机序列号:%@",identifierNumber);//手机别名:用户定义的名称NSString*userPhoneName=[[UIDevicecurrentDevice]name];NSLog(@"手机别名:%@",userPhoneName);//设备名称NSString*deviceName=[[UIDevicecurrentDevice]systemName];NSLog(@"设备名称:%@",deviceName);//手机系统版本NSString*phoneVersion=[[UIDevicecurrentDevice]systemVersion];NSLog(@"手机系统版本:%@",phoneVersion);//手机型号NSString*phoneModel=[[UIDevicecurrentDevice]model];NSLog(@"手机型号:%@",phoneModel);//地方型号(国际化区域名称)NSString*localPhoneModel=[[UIDevicecurrentDevice]localizedModel];NSLog(@"国际化区域名称:%@",localPhoneModel);NSDictionary*infoDictionary=[[NSBundlemainBundle]infoDictionary];//当前应用名称NSString*appCurName=[infoDictionaryobjectForKey:@"CFBundleDisplayName"];NSLog(@"当前应用名称:%@",appCurName);//当前应用软件版本比如:1.0.1NSString*appCurVersion=[infoDictionaryobjectForKey:@"CFBundleShortVersionString"];NSLog(@"当前应用软件版本:%@",appCurVersion);//当前应用版本号码int类型NSString*appCurVersionNum=[infoDictionaryobjectForKey:@"CFBundleVersion"];NSLog(@"当前应用版本号码:%@",appCurVersionNum);扩展资料:ios如何获取手机型号等信息[java]//手机序列号NSString*identifierNumber=[[UIDevicecurrentDevice]uniqueIdentifier];NSLog(@"手机序列号:%@",identifierNumber);//手机别名:用户定义的名称NSString*userPhoneName=[[UIDevicecurrentDevice]name];NSLog(