You often see this if you are creating your main UIWindow in code but there is an extra UIWindow defined in your nib file. In iOS 4 the window you create in code appears above the nib-defined window. In iOS 5 it is the other way round - the empty nib-defined window appears above your window created in code If you are creating your main window in code then check your nib file, remove any extra window and remove the Main Nib File setting from your info.
Plist file.
You often see this if you are creating your main UIWindow in code but there is an extra UIWindow defined in your nib file. In iOS 4 the window you create in code appears above the nib-defined window. In iOS 5 it is the other way round - the empty nib-defined window appears above your window created in code.
If you are creating your main window in code then check your nib file, remove any extra window and remove the Main Nib File setting from your info. Plist file.
Thanks I will check what you say, my app is a navigation based application which I created it as a window based and then later made it navigation based manually. But then why it works well when I suspend it back? – XDeveloper Oct 26 at 16:31 Who knows - iOS is designed to have one main UIWindow.
If you have two then all bets are off. Given your starting point I'm almost certain you will find that there is an extra window in your nib. Remove it and the problem will go away.
– Robin Summerhill Oct 26 at 16:42 THANKS, worked! But When I also remove the Main Nib File setting from info. Plist file I get a black window and it does not work.? Also transition from splash screen to View is a bit weird..any optimization can I make here?
– XDeveloper Oct 26 at 16:53 It depends exactly what you are doing and I can't tell that from here. If you are relying on the nib to create your top-level view controller then you still need the Main Nib File setting. Maybe it would be best to create your UIWindow, root view controller and splash screen programmatically so that you can be certain they are created exactly when you are expecting and in the order you expect.
'is a bit weird' doesn't tell me much. – Robin Summerhill Oct 26 at 16:59.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.