I have to "convert" a rather old iOS app to the current iOS6 SDK. Unfortunately I have nearly no experience in iOS development. Short problem description.
After I made the app compile on the latest iOS6 SDK the direction autoturn was not working on iOS5 anymore. After a bit of searching I found out that I have to implement the supportedInterfaceOrientations
function. And to make it finally turn on orientation change I had to change [window addSubView:tabBarController.view]
to window.rootViewController = tabBarController
in the didFinishLaunchingWithOptions
function.
With these changes the orientation turn is working on iOS5/6 again but showing a modal login view with [tabBarController presentModalViewController:loginController animated:YES]
is not working anymore on iOS5. The login view is showing, but the contents (subviews) of the login view are displayed behind the tabBarController contents. But the tabBarController should be hidden by the login view entirely.
Looks like a kind of z-index issue on iOS5. Currently I have no idea why it is working on iOS6 and not on iOS5 anymore.
How can I make my login view and it's subviews the top most view(s) again?