开发者

Is it possible to programmatically change the Default.png launch image?

开发者 https://www.devze.com 2023-01-07 16:07 出处:网络
Is it possible to programmatically change the Default.png launch image? For example, could I replace it by an other image that fits better? My app has a tab bar and every tab has a very different scr

Is it possible to programmatically change the Default.png launch image?

For example, could I replace it by an other image that fits better? My app has a tab bar and every tab has a very different screen, and I want to recover to that particular tab after a hard launch from scratch when the app got terminated开发者_如何学Go in the background.


No.

The image Default.png is part of the bundle of your app, and you can only read this folder, you can't modify it. There is no API to specify a different launch image.


Actually, you can. There's little trick that you can do:

set up path to Launch Image in Info.plist file to something like ../Documents/Splash.png

So, at first launch there will be no splash. After that just copy Any file of your bundle in application Documents directory as Splash.png And in next launch your Splash will change.


perhaps an idea would be for your default to be a blank "view" along with the tab bar controller at the bottom. This goes along the lines of Apples HIG.

0

精彩评论

暂无评论...
验证码 换一张
取 消