iPhone 8和iPhone X的型号名称是什么? [英] What are the model names for IPhone 8 and iPhone X?

查看:192
本文介绍了iPhone 8和iPhone X的型号名称是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有权访问iPhone 8和iPhone X的任何人都可以告诉我型号名称吗?它可以通过 UIDevice.current.modelName 进行访问。

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.

推荐答案

@Anbu提到的信息是:

The information as @Anbu mentioned are:


  • iPhone 8:iPhone10,1和iPhone10,3

  • iPhone 8 Plus:iPhone10,2和iPhone10,4

  • iPhone X:iPhone10,5和iPhone10,6

请记住,如果你想使用 UIDevice.current.modelName ,你需要创建自己的扩展,因为这不是中的默认值UIDevice.current

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.

这篇关于iPhone 8和iPhone X的型号名称是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆