Я пытаюсь заблокировать одно из представлений в своем приложении на LandscapeRight. Код, который я использовал, показан ниже.
// To landscape
- (NSUInteger) supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscapeRight;
}
- (BOOL)shouldAutorotate {
return NO;
}
- (UIInterfaceOrientation) preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationLandscapeRight;
}
Тем не менее, он все еще вращается.
Я что-то пропустил?