From iOS 13 Apple now requires a new process of adding launch / splash screens to your application, you can no longer simply package the “default.png” images in your application you have done with previous versions of iOS and AIR.
Note: Apple will soon enforce launch screens with the iOS 13 requirement so this will be a prerequisite for publishing in the AppStore
This guide shows how to create the launch storyboard directly in Xcode.
This simple method uses a prebuilt storyboard which pulls an image from your
Assets.car and fill the screen keeping the aspect ratio (your image may be cropped on some devices depending on the resolution).
We have included these instructions as part of the Icons, Launch Storyboards and the Assets Catalog guide.
Note: You will need a macOS machine with Xcode 9+ for this method to generate the
As this process is tightly integrated with generating the
Assets.car (asset catalog) containing your application icons, we will go through adding the icons first.
Firstly you will need to open Xcode and create a new application
Now you have added the application icons we move onto adding the launch storyboard. For this we have included 2 guides:
Firstly we need to add the image resource to your asset catalog.
AppIconand select New Image Set:
LaunchScreen.storyboardin the left hand panel:
cmd - shift - L, then find the Image View and add it to your view:
LaunchScreen.storyboardcis a directory but will appear as a “file” (package) on macOS
Once you have completed your storyboard and added the application icons you can add these to your AIR applicaiton.
LaunchScreen.storyboardc and package with AIR application at the root level of your application.
Add the following to your info additions in your application descriptor:
<iPhone> <InfoAdditions><![CDATA[ <!-- ... --> <key>UILaunchStoryboardName</key> <string>LaunchScreen</string> ]]></InfoAdditions> </iPhone>