Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

iphone

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 in the background.

like image 249
dontWatchMyProfile Avatar asked Jul 13 '10 15:07

dontWatchMyProfile


2 Answers

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.

like image 69
Guillaume Avatar answered Sep 20 '22 15:09

Guillaume


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.

like image 27
tt.Kilew Avatar answered Sep 18 '22 15:09

tt.Kilew