How to differ between ipad mini and ipad air?

前端 未结 3 915
长情又很酷
长情又很酷 2021-01-16 11:29

When I run on simulator ipad mini (which I am using ipad 2 profile) and ipad air it shows the same resolution 1024x768

for UI Kit it might adjust automatically but I

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-16 12:34

    You can use model method in UIDevice class to distinct different devices. What's more, you can use this open source framework https://github.com/erichoracek/UIDevice-Hardware . It may be more handy to use it.

提交回复
热议问题