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.