本文介绍了iPhone 8,iPhone 8 Plus和iPhone X设备代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下代码获取设备名称
I'm using the below code to get the device name
NSString* code = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
其结果如下并映射到设备
Which gives the result as follows and mapped to devices
我们是否有新设备的新设备代码(iPhone 8,iPhone 8 Plus和iPhone X)
Do we have the new device code for the new devices that are released (iPhone 8, iPhone 8 Plus and iPhone X)
推荐答案
编辑:这已得到纠正。 iPhone X 不 iPhone10,5和iPhone10,6。
This has been corrected. The iPhone X is NOT iPhone10,5 and iPhone10,6.
- iPhone 8:
iPhone10,1
&iPhone10,4
- iPhone 8 Plus:
iPhone10,2
&iPhone10,5
- iPhone X:
iPhone10,3
&iPhone10,6
- iPhone 8:
iPhone10,1
&iPhone10,4
- iPhone 8 Plus:
iPhone10,2
&iPhone10,5
- iPhone X:
iPhone10,3
&iPhone10,6
这篇关于iPhone 8,iPhone 8 Plus和iPhone X设备代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!