У меня есть проект с использованием UINavigationController и segues, работающих нормально, все они вращаются правильно, дело в том, что... Я просто хочу отключить autorotation для определенного UIViewController.
Я пробовал это:
- (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;
}
но он не работает, мой UIViewController продолжает вращаться автоматически, любая помощь будет приветствоваться:)