I'm using storyboards in interface builder using the Xcode menu 'Editor...Embed in...Navigation Controller'.
It seems that in iOS 6 you have to subclass the UINavigationController to allow all orientations, with
- (NSUInteger)supportedInterfaceOrientations {
return (UIInterfaceOrientationMaskAll );
}
But how do I subclass the UINavigationController with a storyboard app as there is no reference to it in the code?
You can select the navigation controller scene's navigation controller from the storyboard:
And then use the identity inspector on the right to change the class:
For instance change the "Class" there to
MyCustomNavigationController
and then just create a new class in your project calledMyCustomNavigationController
:MyCustomNavigationController.h:
MyCustomNavigationController.m: