(ios): fix regression in 2706f34 (#715)

Fix merging issue from #656

Closes #714
This commit is contained in:
Niklas Merz 2020-06-05 15:23:10 +02:00 committed by GitHub
parent 04ce789724
commit 090345248c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1244,15 +1244,6 @@ BOOL isExiting = FALSE;
return 1 << UIInterfaceOrientationPortrait; return 1 << UIInterfaceOrientationPortrait;
} }
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(shouldAutorotateToInterfaceOrientation:)]) {
return [self.orientationDelegate shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
return YES;
}
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
{ {
[coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context) [coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context)