Dynamic change of start diagram Launchimage

Source: Internet
Author: User

Today, the group asked how to dynamically change the start map, this stuff in a long time ago, really can do, tell him to find, as if not found, so I went to Google to ask, the answer is as follows:


Add the following key values to the Info.plist: Launch image (IPhone):.. /documents/splash.png PS: In the plist file, right click the mouse, select Show Raw keys/values, will become Uilaunchimagefile~iphone


Since the Documents folder is not generated until the user installs it, the first time it starts, there is no startup diagram. You can then use any image (such as the current screenshot) as your starting map, as long as the path of this map is the user directory/documents/splash.png, the next time the boot map will change. (Of course you can also store to any local path)

At present I test successfully in IOS6, screenshot saved to Documents and named Splash.png is OK, but there is a little problem. Since the first test on the simulator was to use a 3.5 screen, the screenshot was 3.5, and the interface was 3.5 after the 4.0 screen (which has been adapted). This is remembered Defalut picture also has three kinds of specifications, namely: Default.png Default@2x.png Default-568h@2x.png so dots, also saved three Zhang, this is normal

In fact, users are generally not likely to switch from 3.5 to 4.0, so there is no need to consider this issue.

When the test on the iOS7 on the failure, do not know why. IOS7 added a new key value uilaunchimages, search in the document can see the relevant information, even if the addition of this key value, can not be used, temporarily give up, to be free to study under. Here's an example: Http://stackoverflow.com/questions/18976412/launch-screens-supporting-ios6-and-ios7-forced-to-splash-screen

ref:http://stackoverflow.com/questions/3238684/ Is-it-possible-to-programmatically-change-the-default-png-launch-image Original Address: http://likid1412.github.io/blog/ 2013/11/20/dong-tai-gai-bian-qi-dong-tu-launchimage/

Thanks to the author of this article

The almighty Google will have the answer, the small partners to master the effective way of information retrieval, the Internet will bring you surprises.

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.