I have a project using UINavigationController and segues working properly good, all of them rotate correctly, the thing is... I just want to disabl
Gonna complete GayleDDS's answer for the newbies just added a subclass of UINavigationController as he suggested like this:
#import "UINavigationController.h"
#import "MonthCalendarVC.h"
@implementation UINavigationController (overrides)
- (BOOL)shouldAutorotate
{
id currentViewController = self.topViewController;
if ([currentViewController isKindOfClass:[MonthCalendarVC class]])
return NO;
return YES;
}
@end
MonthCalendarVC is the viewController I want to be just in portrait mode (fixed), then just added the import to my appdelegate.m
#import "UINavigationController.h"
and that's it