Two UITabBarControllers and Autorotation
Posted
by optimisticmonkey
on Stack Overflow
See other posts from Stack Overflow
or by optimisticmonkey
Published on 2010-04-17T03:07:51Z
Indexed on
2010/04/17
3:13 UTC
Read the original article
Hit count: 319
I have two UITabBarControllers in my mainwnidow.nib wired to my appdelegate.
In my app delegate, I can load either one:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//either
[window addSubview:tabBarController.view];
//or
[window addSubview:tabBar2Controller.view];
[window makeKeyAndVisible];
}
and autorotation works.
If I add both (with the expectation to swap between them later):
[window addSubview:tabBarController.view];
[window addSubview:tabBar2Controller.view];
then autorotation stops working...everything is always portrait.
Thanks in advance for any tips...
© Stack Overflow or respective owner