iOS boot animations

Source: Internet
Author: User

1, add launchimage in images.xcassets

2. Delete launchscreen.xib

3, in supporting files in the info.plist file, remove Launch Screen interface ...

In the config file Target---> project name ---->general----->

4. Change the second line above to the above name

5,- (BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary * ) Launchoptions {

if ([[[[Uidevice Currentdevice] systemversion] floatvalue] >= 7.0) {

This line is used in conjunction with view controller-based status bar appearance=no in the plist file to resolve the status bar All Black problem

[Application setstatusbarstyle:uistatusbarstylelightcontent];}

Pause the start animation for 2 seconds

[Nsthread sleepfortimeinterval:2.0];

Make the entry interface not full black, white

Self.window = [[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds]];

Self.window.backgroundColor = [Uicolor Whitecolor];

[Self.window makekeyandvisible];

return YES;

}

iOS boot animations

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.