I have added Default.png and [email protected] to a project. They are shown every time when the app starts. But when the app enters foreground from background, the launch image may be shown, and may not be shown. The showing or not showing may be related to the speed each time by which the app recovers. The problem is, how do I know exactly whether the launch image will be shown, or has been shown each time?

2

There are 2 answers

1
Mundi On

I think the launch image is not shown when the app "recovers", as you put it, but only if the app is actually restarted. You could easily check this by putting an NSLog statement into application: didFinishLaunchingWithOptions: and observing when you see the image.

0
robbash On

I'm having a similar problem and while googling I hit this question.

In my case it seems like the launch image is show if the app will recover in a different interface orientation than that one when it went to the background, even if changed to the upside down orientation.

You could compare the orientation before going to background with the orientation when returning. (use applicationDidBecomeActive:; applicationWillEnterForeground: is too early)