iPad Pro scale up from iPad application and Launch Screen file - iOS 10

ぐ巨炮叔叔 提交于 2020-01-02 14:37:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!