iPhone 8, iPhone 8 Plus and iPhone X device code

前端 未结 2 1234
猫巷女王i
猫巷女王i 2020-12-17 01:17

I\'m using the below code to get the device name

NSString* code = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
2条回答
  •  臣服心动
    2020-12-17 01:44

    Edit: 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

提交回复
热议问题