简体   繁体   中英

iPad Pro reporting wrong screen scale

The call to get the device screen scale:

[[UIScreen mainScreen] scale]

does not return the proper value for the iPad Pro. The device is reporting 2, when it should be higher.

Other answers insist it's an issue of whether we are using a Launch Screen. Our project uses both a Launch Images asset catalog and a storyboard Launch Screen. Has anyone else run into this problem?

HIG称, iPad Pro的屏幕比例为@ 2x,因此2实际上是正确的值。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM