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.