简体   繁体   中英

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

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.

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.

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