Contents

Specifying your app’s launch screen

Make your iOS app launch experience faster and more responsive by customizing a launch screen.

Overview

Every iOS app must provide a launch screen, a screen that displays while your app launches. The launch screen appears instantly when your app starts up and is quickly replaced with the app’s first screen.

You create a launch screen for your app in your Xcode project in one of two ways:

  • Information property list

  • User interface file

To make the app launch experience as seamless as possible, create a launch screen with basic views that closely resemble the first screen of your app. For guidelines about designing a launch screen, see Launching in the Human Interface Guidelines.

Configure a launch screen in an information property list

For apps with simple user interfaces, using the information property list in your app provides a quick and straightforward method to configure your launch screen.

  1. In the settings for your target, select the Info tab.

  2. In the Custom iOS Target Properties section, expand the Launch Screen key.

  3. Click the Add button (+), type in UILaunchScreen, and press Return to add the launch screen key to the property list. If the UILaunchScreen key is already present, you can skip this step.

  4. Select the UILaunchScreen key, click the Add button, and add additional keys to specify configuration options for your launch screen.

[Image]

Define the appearance of the launch screen by specifying a combination of launch screen options from the possible keys in UILaunchScreen.

Configure a launch screen storyboard

Alternatively, you can configure your launch screen in a user interface file, a file with a .storyboard file extension. A launch screen storyboard contains basic UIKit views, and uses size classes and Auto Layout constraints to support different device sizes and resolutions.

Follow these guidelines when creating a launch screen storyboard:

  • Use only UIKit classes.

  • Use a single root view that’s a UIView or UIViewController object.

  • Don’t make any connections to your code, for example, don’t add actions or outlets.

  • Don’t use deprecated views such as UIWebView.

  • Don’t use any custom classes.

  • Don’t use runtime attributes.

If you create your iOS app from a storyboard template, Xcode adds a default launch screen file, called LaunchScreen.storyboard, to your project. Edit LaunchScreen.storyboard to configure your launch screen.

If your project doesn’t contain a default launch screen file, add a launch screen file and set the launch screen file for the target in the project editor.

  1. Choose File > New > File from Template.

  2. Under User Interface, select Launch Screen, and click Next.

  3. Give the launch screen file a name, choose a location, select the target that you want to add the file to, and click Create.

  4. In the settings for your target, select the General tab and find the “App Icons and Launch Screen” section.

  5. From the Launch Screen File pop-up menu, choose the new launch screen file.

[Image]

See Also

App icons and launch screen