Skip to content
Permalink
Browse files
chore: remove deprecated orientation methods (#666)
  • Loading branch information
jcesarmobile committed Apr 6, 2020
1 parent c01f037 commit 396c085ba3deab353519c4f6c0426ab3e716301e
Showing 2 changed files with 2 additions and 22 deletions.
@@ -63,7 +63,7 @@ - (BOOL)shouldAutorotate
return YES;
}

- (NSUInteger)supportedInterfaceOrientations
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(supportedInterfaceOrientations)]) {
return [self.orientationDelegate supportedInterfaceOrientations];
@@ -72,14 +72,4 @@ - (NSUInteger)supportedInterfaceOrientations
return 1 << UIInterfaceOrientationPortrait;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(shouldAutorotateToInterfaceOrientation:)]) {
return [self.orientationDelegate shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}

return YES;
}


@end
@@ -1227,7 +1227,7 @@ - (BOOL)shouldAutorotate
return YES;
}

- (NSUInteger)supportedInterfaceOrientations
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(supportedInterfaceOrientations)]) {
return [self.orientationDelegate supportedInterfaceOrientations];
@@ -1236,14 +1236,4 @@ - (NSUInteger)supportedInterfaceOrientations
return 1 << UIInterfaceOrientationPortrait;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(shouldAutorotateToInterfaceOrientation:)]) {
return [self.orientationDelegate shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}

return YES;
}


@end //CDVWKInAppBrowserViewController

0 comments on commit 396c085

Please sign in to comment.