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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With