Weird landscape UITabBarController Application startup
Posted
by Stefano Verna
on Stack Overflow
See other posts from Stack Overflow
or by Stefano Verna
Published on 2009-07-17T00:06:44Z
Indexed on
2010/03/24
15:03 UTC
Read the original article
Hit count: 238
Hi there. My application is quite simple, but I have some problems when it starts. I setted in the Info.plist to be landscaped, but it seems to ignore the order. In fact, when the app is loading the Simulator is landscaped, but then it returns in portrait mode.
This is the hierarchy of the views and controllers:
- MainViewController (extends UITabBarController just to override shouldAutorotateToInterfaceOrientation:)
- Three extended UITableViewControllers as tabs (also those have the shouldAutorotateToInterfaceOrientation correctly setted up).
If I kinda force the orientation of the device to Landscape with:
[[UIDevice currentDevice] setOrientation: UIInterfaceOrientationLandscapeRight];
Then for an instant the Simulator flashes in portrait mode, and then it goes landscaped. The problem is that in this way, the auto-rotation animations gets started, which is something I cannot tollerate. I just want a fixed, landscaped application.
Any clues? Am I missing something?
© Stack Overflow or respective owner