How to add support for 10.5 inch iPad Pro

前端 未结 2 1461
孤城傲影
孤城傲影 2020-12-31 05:33

I\'ve just downloaded the latest Xcode 8.3.3 update from the MAS. I was wondering how to add support for the new 10.5-inch iPad Pro?

I\'m using stor

2条回答
  •  轮回少年
    2020-12-31 06:04

    I believe that the auto-layout launch screen story board should be all that is needed. However, I have found that if I build an application under Xcode 8.3.3, the UIScreen.mainScreen.bounds returns 736 x 1024. If I build the same application under Xcode 9 and the iOS 11 SDK beta, UIScreen.mainScreen.bounds returns 834 x 1112.

    UPDATE:
    As others have mentioned, when an app is built with Xcode 8.3.3/iOS 10.3 and is running on the iPad Pro 10.5 simulator, the UIRequiresFullScreen key in the app info.list determines whether or not the app is scaled to 768 x 1024. If UIRequiresFullScreen = YES, the app is scaled. If UIRequiresFullScreen = NO, the app is full resolution (834 x 1112).
    However, if the app is built with Xcode 9/iOS 11 beta 1, it always runs at the full native resolution regardless of the UIRequiresFullScreen key setting. Some developers believe that this is intentional behavior and not a bug. Others believe it is simply an artifact of running the iOS 10 app under the iOS 11 simulator. We probably won't know for sure until developers receive the new hardware.

提交回复
热议问题