In my mainwindow.xib I have a navigation controller. At the top (as a sub), I have another view manager (homeviewcontroller).
In nib, I installed window rootviewcontroller with such a navigation controller.
It deploys to the application store and works great.
Starting from the upgrade to ios6 sdk, I get orientation problems - basically with this design the supportedInterfaceOrientations method of my homeviewcontroller is not called when my application runs on the ios 6 device / simulator.
To fix this problem, I need to set the homeviewcontroller as the rootviewcontroller window, but this is not what I want - I need a navigation manager.
How do I get around this annoying bug in ios6?
Update:
I also tried doing this programmatically - it still doesn't work.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { HomeViewController *homeVC = [[HomeViewController alloc]init]; UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:homeVC]; [self.window setRootViewController:navController]; [self.window makeKeyAndVisible]; return YES; }
objective-c iphone xcode
TheLearner Oct 12 '12 at 15:57 2012-10-12 15:57
source share