Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force iPad Pro to full resolution without Launch Screen

Tags:

xcode

ios

ipad

I want to use a Launch Image with my iOS app, not a Launch Screen. (Launch Images can target devices more precisely than Launch Screens; there's no way to make a launch screen that behaves exactly like a launch image.)

If you do not have a Launch Screen in your iOS app, the iPad Pro renders as if the screen resolution were 1024x768 points wide. (To see this, create a new project, delete its launch screen, and start it in iPod Pro simulator.)

Is there a way to get iPad Pro to render at native 1366x1024 points without using a Launch Screen?

like image 568
Dan Fabulich Avatar asked Nov 22 '15 21:11

Dan Fabulich


People also ask

How do I make my IPAD Pro full screen?

Whichever your video app supports, you can view it full screen by tapping the icon that looks like two arrows pointing in opposite directions. If you're viewing the video picture-in-picture, tap the right-corner icon showing two squares with one that has an arrow in it.

Why do apps look small on IPAD?

You need to go into Settings app, Display and scroll down the right column until you see a display of the iPad's screen and select larger. The icons on your Home screens will enlarge, but you will lose the option of the Today view being on your main Home screen when you enlarge the app icons.


2 Answers

No, you must use a Launch Screen to support the iPad Pro. That is how Apple decided to support it.

If you can't find a way to use a single Launch Screen to get the results you want, you can provide one specific to iPhones and one specific to iPads.

Update: Xcode 8 supports an iPad Pro Launch image slot so you no longer must use a Launch screen file to support the iPad Pro.

like image 86
rmaddy Avatar answered Oct 03 '22 07:10

rmaddy


iPad 12.9 and iPad 10.5 can now be supported without using a Launch Screen.

I believe Xcode 8 briefly supported the iPad Pro within the xcassets file, but that support has been revoked.

However, a key has been added to the info.plist file that will allow for static images to be used.

Human Interface Guidelines: https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/launch-screen/

Apple Technical Documentation: https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW28

Sample Code (added to info.plist)

<key>UILaunchImages</key>
<array>
    <dict>
        <key>UILaunchImageName</key>
        <string>Burn480</string>
        <key>UILaunchImageOrientation</key>
        <string>Portrait</string>
        <key>UILaunchImageSize</key>
        <string>{320, 480}</string>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>7.0</string>
    </dict>
    <dict>
        <key>UILaunchImageName</key>
        <string>Burn568</string>
        <key>UILaunchImageOrientation</key>
        <string>Portrait</string>
        <key>UILaunchImageSize</key>
        <string>{320, 568}</string>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>7.0</string>
    </dict>
    <dict>
        <key>UILaunchImageName</key>
        <string>Burn667</string>
        <key>UILaunchImageOrientation</key>
        <string>Portrait</string>
        <key>UILaunchImageSize</key>
        <string>{375, 667}</string>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>7.0</string>
    </dict>
    <dict>
        <key>UILaunchImageName</key>
        <string>Burn736</string>
        <key>UILaunchImageOrientation</key>
        <string>Portrait</string>
        <key>UILaunchImageSize</key>
        <string>{414, 736}</string>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>7.0</string>
    </dict>
    <dict>
        <key>UILaunchImageName</key>
        <string>Burn1024</string>
        <key>UILaunchImageOrientation</key>
        <string>Portrait</string>
        <key>UILaunchImageSize</key>
        <string>{768, 1024}</string>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>7.0</string>
    </dict>
    <dict>
        <key>UILaunchImageName</key>
        <string>Burn1112</string>
        <key>UILaunchImageOrientation</key>
        <string>Portrait</string>
        <key>UILaunchImageSize</key>
        <string>{834, 1112}</string>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>7.0</string>
    </dict>
    <dict>
        <key>UILaunchImageName</key>
        <string>Burn1366</string>
        <key>UILaunchImageOrientation</key>
        <string>Portrait</string>
        <key>UILaunchImageSize</key>
        <string>{1024, 1366}</string>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>7.0</string>
    </dict>
</array>
like image 43
aepryus Avatar answered Oct 03 '22 08:10

aepryus