Sometimes (let's say once every 10-20 tries) when application is sent to background by pressing the home button and launched real quick again, the following error is seen on the console:
UIWindows were created prior to initial application activation. This may result in incorrect visual appearance.
And subsequently the app gets the call applicationWillTerminate: and is terminated. There is no crash or any type of crash log. It seems the system terminated the app.
Here are some of the application delegate calls around this time:
================================
default 10:20:49.118688-0700 App applicationDidEnterBackground:
default 10:20:49.128036-0700 App applicationDidEnterBackground: saved managed object context
error 10:20:49.683527-0700 App UIWindows were created prior to initial application activation. This may result in incorrect visual appearance.
default 10:20:49.689023-0700 App applicationWillEnterForeground:
default 10:20:50.358051-0700 App applicationDidEnterBackground:
default 10:20:50.360120-0700 App applicationDidEnterBackground: saved managed object context
default 10:20:50.363996-0700 ToDo applicationWillTerminate:
================================
Even though it's not impacting the app functionally except that once in a while the user may have to re-launch the app, still, it can lower user confidence in the app. How can I prevent this? Is there anything that should be done in the application lifecycle via one of those delegate calls?
Thanks.