I have my entire interface in one Storyboard. How can I make most of the ViewControllers only support a portrait orientation while only a couple supporting all orientations.
Here is my Subclassed RootNavController.h
-(BOOL)shouldAutorotate
{
return YES;
}
-(NSUInteger) supportedInterfaceOrientations
{
if (self.topViewController.view.superview)
{
return [self.topViewController supportedInterfaceOrientations];
}
return UIInterfaceOrientationMaskAll;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationMaskPortrait;
}