问题
I have an ipad application that I would like to run on iPad pro, but when I run it, it only occupies one corner of the screen like so:
Now, another stackoverflow question asked the same question and the response was to remove the launch screen file and not to give the OS any hardcoded information about the device size it's going to run on. I did it and it scaled my app to full screen BUT..
It created another iOS10 specific bug that happens if you don't specify the launch screen: iPad Application shows app icon as launch screen in iOS 10
How can I fix this without compromising on one bug or the other.
回答1:
I ran into similar issue. Below is the solution that worked for me.
My app uses a launch story board to fix the weird issue of zoomed app icon on launch.
Removing this resulted in fixing the resolution in iPad Pro and app behaved exactly like in iPad Air.
But i need to add Launch image to fix the zoomed app icon on launch. Go to Setting -> General
Launch image settings
Add launch images (1024 * 768) in asset catalog. (Based on orientations your app supports.)
This should fix both the issues of zoomed app icon on launch and setting proper resolution to fit the app in iPad Pro as in iPad Air.
来源:https://stackoverflow.com/questions/39729390/ipad-pro-scale-up-from-ipad-application-and-launch-screen-file-ios-10