Force пейзаж IOS 7
Я попытался следующие методы, чтобы заставить пейзаж на одном из моих просмотров:
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscape;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationLandscapeLeft;
}
- (BOOL)shouldAutorotate{
return YES;
}
Ни один не работал. Обратите внимание, что я тестирую на симуляторе и на iPad.
Спасибо