Есть ли какие-либо ограничения на iOS 13 для ориентации Пейзаж, для модального стиля представления View Controllers? Для полноэкранного стиля презентации работает, но при модальном зависании и сбоях.
Представитель приложения:
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
if (self.shouldRotate) {
return UIInterfaceOrientationMaskAll;
} else {
return UIInterfaceOrientationMaskPortrait;
}
Fun c:
-(void) restrictRotation:(BOOL) restriction {
AppDelegate* appDelegate = (AppDelegate*)[UIApplication sharedApplication].delegate;
appDelegate.shouldRotate = restriction;
}
viewWillAppear
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self restrictRotation:YES];
}