Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/118.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 我们能找到iDevice模型吗?_Ios - Fatal编程技术网

Ios 我们能找到iDevice模型吗?

Ios 我们能找到iDevice模型吗?,ios,Ios,我们是否可以像中所示检索iDevice模型 设置->常规->关于->型号=MD662F?不幸的是,否。具有“型号”属性,但只返回@“iPhone”和@“iPod touch”等 UIDevice *currentDevice = [UIDevice currentDevice]; NSString *model = [currentDevice model]; NSLog(@"Device Model: %@", model);

我们是否可以像中所示检索iDevice模型

设置->常规->关于->型号=MD662F

不幸的是,否。具有“型号”属性,但只返回@“iPhone”和@“iPod touch”等

UIDevice *currentDevice = [UIDevice currentDevice];
NSString *model = [currentDevice model];
NSLog(@"Device Model: %@", model);