chore: remove deprecated orientation methods (#666)
This commit is contained in:
parent
c01f037c8a
commit
396c085ba3
@ -63,7 +63,7 @@
|
|||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSUInteger)supportedInterfaceOrientations
|
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
|
||||||
{
|
{
|
||||||
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(supportedInterfaceOrientations)]) {
|
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(supportedInterfaceOrientations)]) {
|
||||||
return [self.orientationDelegate supportedInterfaceOrientations];
|
return [self.orientationDelegate supportedInterfaceOrientations];
|
||||||
@ -72,14 +72,4 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -1227,7 +1227,7 @@ BOOL isExiting = FALSE;
|
|||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSUInteger)supportedInterfaceOrientations
|
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
|
||||||
{
|
{
|
||||||
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(supportedInterfaceOrientations)]) {
|
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(supportedInterfaceOrientations)]) {
|
||||||
return [self.orientationDelegate supportedInterfaceOrientations];
|
return [self.orientationDelegate supportedInterfaceOrientations];
|
||||||
@ -1236,14 +1236,4 @@ 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@end //CDVWKInAppBrowserViewController
|
@end //CDVWKInAppBrowserViewController
|
||||||
|
Loading…
Reference in New Issue
Block a user