What are the model names for IPhone 8 and iPhone X? [duplicate]

泄露秘密 提交于 2019-12-02 22:37:16

问题


Can anyone who have access to iPhone 8 and iPhone X let me know the model names? It could be accessed by UIDevice.current.modelName.


回答1:


The information as @Anbu mentioned are:

  • iPhone 8: iPhone10,1 and iPhone10,4
  • iPhone 8 Plus: iPhone10,2 and iPhone10,5
  • iPhone X: iPhone10,3 and iPhone10,6

Remember if you want to use UIDevice.current.modelName you need to create your own extension since this is not a default value in UIDevice.current.



来源:https://stackoverflow.com/questions/46234177/what-are-the-model-names-for-iphone-8-and-iphone-x

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!