Editing the launch screen storyboard

The Spotfire Deployment Kit for Apple iPad app uses a storyboard resource file for the startup (launch screen) image. You can change the launch screen that displays when the app opens. The LaunchScreen.storyboard is an interface builder storyboard file that uses auto-layout and some basic constraints on the controls to adjust the display for all the supported devices.

Perform this task in the copy of the DeploymentKitApp in Xcode on your computer. By default, the launch screen shows on the device for just a moment when the app launches.

To display an image on the launch screen using the LaunchScreen storyboard, you can create a new image set in the assets catalog named Images.xcassets included with the DeploymentKitApp project and drag and drop image files into the placeholders in this set.

Optionally, you can just change the default text that already appears in the provided storyboard and drag and drop an image into the View Controller within this storyboard file.

Prerequisites

To edit the LaunchScreen storyboard file, you should have experience working with Xcode, editing storyboards, and using layout features such as Constraints and auto-layout. For more information about working with storyboard layouts, see Xcode help.

Procedure

  1. In the Xcode Navigator, open the folder LaunchScreen.storyboard.

    folder LaunchScreen.storyboad in the DeploymentKitApp

    The View Controller Scene is opened displaying the default text provided with the DeploymentKitApp. In addition to default text, the View includes Constraints for centering the title and placing the copyright information to the bottom of the screen.

    View Controller for Launch screen

  2. Remove or edit any of the default text.
  3. Drag and dropan image file to the placeholder area in the editor window..
    Note: Only static content, such as images, work in the launch screen. No interactive controls, such as buttons, work in this storyboard.
  4. Optional: Adjust the constraints to control any text placement.

Result

Here is an example displaying a color for the launch screen.

View controller displaying background and constraints

What to do next

If you want to change the duration that the launch screen is displayed, see Setting the splash launch display duration.