I have a project using UINavigationController
and segues
working properly good, all of them rotate correctly, the thing is... I just want to disable autorotation
on a specific UIViewController
.
I tried this:
- (BOOL)shouldAutorotateToInterfaceOrientation:
(UIInterfaceOrientation)interfaceOrientation {
return NO;
}
// New Autorotation support for iOS 6.
- (BOOL)shouldAutorotate NS_AVAILABLE_IOS(6_0){
return NO;
}
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
but it's not working, my UIViewController
keeps rotating automatically, any help will be welcome :)