Settings for the IOS startup page

Source: Internet
Author: User

Some time ago a friend asked how to set the Start page, I recently idle, write the process, only for reference and learning:

1. Click Assets.xcassets to enter picture management, then right click, pop-up "New IOS Launch image", as shown

2. Will be the size of the picture, from your file dragged to a fixed position, such as wrong size, there will be warning prompts.

IPhone Portrait IOS 8,9

Retina HD 5.5 1242 * 2208

Retina HD 4.7 750 * 1334

IPhone Portrait IOS 7-9

2x 640 * 960

Retina 4 640 * 1136


3. Click on your entire project name and select General Set launch Images srouce to remove content from launch screen file for Launchimage


At this point, the startup page is set up.

If you want to set the time for the startup page, write down the appdelegate.m file

-(BOOL) Application: (UIApplication *) application 
didfinishlaunchingwithoptions: (nsdictionary *) launchOptions {
[Nsthread sleepfortimeinterval:3.0];  I set this here 3 seconds return
Yes;


If you open a previous demo, you find that the simulator is running with black and low edges, as follows


Reason: Original demo supports up to 4 inch screen

WORKAROUND: You need to set up the startup page to support more screens (as above). Then delete the app in the simulator, Product--clean it once, and then run it again.





Related Article

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.