Xcode7, iOS9 set boot picture (Launch image) (GO)

Source: Internet
Author: User

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)

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.