IOS Launchscreen Set the startup picture and set the start page dwell time

Source: Internet
Author: User

When we want to develop a more beautiful iOS software, beautiful icons and boot images are essential. Generally, there are two methods, one is set through the Xib file and the other is set by Assets.xcassets. But the second I did not master, first to record the first method, the second to learn to update.

1. Click on the project to set the launch screen file to Launchscreen

2. Click the project, right-create a new file


3. Select User Interface on the left, select View, click Next


4. File name is Launchscreen


5. Create the following page

6. Put the picture that needs to be set as the start page in the project

7. In the lower right corner select the ImageView control, left mouse button down drag into the previous step to establish the Xib page, and adjust the ImageView control size, make it suitable for xib page, fill in the upper right corner of the start picture name

8. Click the top of the Xib page to adjust the size of the phone (iphone6s virtual machine is selected here, size is set to 4.7)



9. Click on the top of the Xib page, as shown in the three options of the red box


10. Click Run, running the program, successfully

11. Set the Start Page dwell time, in -(BOOL) Application: (uiapplication *) application Didfinishlaunchingwithoptions: (nsdictionary *) Add code inside the Launchoptions function [nsthread SLEEPFORTIMEINTERVAL:3.0];


IOS Launchscreen Set the startup picture and set the start page dwell time

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.