Add a splash screen to your iOS App

Source: Internet
Author: User

You can think that you need to write code for the splash screen, but Apple lets you do it very easily in Xcode. You don't need to write code, you just need to do some configuration in Xcode.

1. What is the splash screen (Splash)?

The splash screen is the first interface you'll see when you start the app, and usually the splash screen is a picture that covers the entire screen, hidden after the main screen is loaded.

The main purpose of the splash screen is to let the user know that your app is loading and introduce your brand to the user. The splash screen is especially important for apps that take a long time to start. In general, the splash screen is designed to give users a better experience.

2. Add a splash screen to your app

As mentioned earlier, it is not necessary to write any code to display the splash screen. iOS provides a built-in feature-start picture.

The picture is automatically displayed when the user opens the app, and the image disappears automatically when the app starts. You can simply set up the splash screen in Xcode and Xcode will be in charge of the next thing.

3. Prepare your splash screen

We know that the iphone 4/4s supports higher resolutions (so-called Retina display-retina displays). To support 2 resolutions at the same time, we need to prepare 2 versions of the splash screen

* 480 (for IPhone 2g/3g/3gs)

640 * 960 (for IPhone 4/4s)

We show you how to add splash screen for iphone app, for ipad app, refer to app IOS Human Interface guideline documentation-About boot image size and naming conventions.

The boot image must be in PNG format. By default, you can name low-resolution image files as Default.png, for high-resolution images, for retina image files named [email protected], @2x is a standard resolution modifier in iOS. All images used to display on the retina screen should take the @2x string.

You can also use the default as the boot image file name, using the other file name you like, start the image file definition in the app's Info.plist file, add a new attribute named-Launch image, and specify your preferred file name (such as Mylaunchimage).

The above instructions instruct iOS to use mylaunchimage.png and [email protected] files as the splash screen.

You can download the splash screen from the attachment

4. Add your splash screen to Xcode

After you're ready to start the image, go back to Xcode, open your Xcode project, continue using the Simple table project, right-click the Simple Table project, select Add Files to Simpletable, add default.png and [ Email protected] to the project.

After you've done this, you'll see the two files in the project, and Xcode automatically recognizes the file as the splash screen.

5. Start testing!

Run the app again, and this time when the app runs, you'll see a splash screen displayed immediately.

Because there aren't too many things to load when the app starts, the splash screen only shows up for 1 seconds and disappears.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.