Be transferred URL http://www.ithao123.cn/content-10460891.html
I. Adding a splash image
- Click Image.xcassets to enter image management, right click, pop Up "New Launch image" or dot below the + sign to create Launch image;
- , the checkmark on the right allows you to choose whether you want to support ipad, crossbar, vertical screen, and the lower version of iOS. I chose ios8.0 and ios7.0 here.
Two. Drag into the corresponding size of the picture, as the example needs.
I tried it. The name of the picture here can be arbitrarily named, but the format must be in PNG format, if you just write a demo, you can also download the set of images I used http://download.csdn.net/download/riven_wn/9196015.
640*960 (4/4s) 2X position
640*1136 (5/5s/5c) R4 location
750*1334 (6) R4.7 location
1242*2208 (6 Plus) R5.5 position
Three. Settings inside the general.
, Launch Image Source to set the contents of the Launchimage,launch screen file to be deleted as empty.
Four. To uncheck the Launchscreen.storyboard (Low version Xcode is launchscreen.xib) as the check box for Launchscreen, select Cancel.
Here you are done, so easy, but sometimes the first run shows abnormal situation, generally remove the app to run again.
If the display time is not satisfied, you can add this method to extend the display time (this is the swift version, OC-like)
Override Func Viewdidload () { super.viewdidload () nsthread.sleepfortimeinterval (3.0)//extended 3 seconds}
Xcode7, iOS9 set boot picture (Launch image) (GO)