Ниже упомянутый метод делегата ориентации не вызывается в случае устройств iOS плюс (iPhone 8plus / 7plus / 6plus ...)
Мой код для методов ориентации:
Примечание: Право альбомной ориентациифлажок по умолчанию не установлен.
- (BOOL)shouldAutorotate {
return NO;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscapeRight;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
return UIInterfaceOrientationLandscapeRight;
}
Мой файл info.plist:
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
Пожалуйста, помогите мне по этому вопросу.