In iOS 4, if I quickly close and reopen the application (after calling applicationWillResignActive ), there is a chance that applicationWillEnterForeground will be called long before applicationDidEnterBackground and displays a black blank screen because the application enters the background state immediately after the foreground state.
this is the order he printed in the console:
<i> * 1. applicationWillResignActive
2. applicationDidEnterBackground
3. applicationWillEnterForeground
4. applicationDidBecomeActive
1. applicationWillResignActive
3. applicationWillEnterForeground
2. applicationDidEnterBackground *
How to cope with such a scenario? and make sure that the delegation methods of the application are executed in the correct order?
Thanks in advance.
source
share