CB-10606 fix deprecation warning for interfaceOrientation This closes #82
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/e401a4de Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/e401a4de Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/e401a4de Branch: refs/heads/3.2.x Commit: e401a4de0ffa50769e982494f5024b35a31a3380 Parents: 2e1ec32 Author: Edna Morales <[email protected]> Authored: Fri Feb 12 23:05:50 2016 -0500 Committer: Edna Morales <[email protected]> Committed: Mon Feb 15 19:34:38 2016 -0500 ---------------------------------------------------------------------- src/ios/CDVSplashScreen.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/e401a4de/src/ios/CDVSplashScreen.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVSplashScreen.m b/src/ios/CDVSplashScreen.m index 110a0ca..2883201 100644 --- a/src/ios/CDVSplashScreen.m +++ b/src/ios/CDVSplashScreen.m @@ -327,7 +327,7 @@ CGRect imgBounds = (img) ? CGRectMake(0, 0, img.size.width, img.size.height) : CGRectZero; CGSize screenSize = [self.viewController.view convertRect:[UIScreen mainScreen].bounds fromView:nil].size; - UIInterfaceOrientation orientation = self.viewController.interfaceOrientation; + UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation; CGAffineTransform imgTransform = CGAffineTransformIdentity; /* If and only if an iPhone application is landscape-only as per --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
