From 3b2e9e59124e345c61235ca132e8f519d7df8ead Mon Sep 17 00:00:00 2001 From: daserge Date: Tue, 29 Dec 2015 22:08:02 +0300 Subject: [PATCH] CB-9240 Cordova splash screen plugin iPad landscape mode issue Aligns shouldRotate default value with parent CDVViewController behavior --- src/ios/CDVViewController+SplashScreen.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ios/CDVViewController+SplashScreen.m b/src/ios/CDVViewController+SplashScreen.m index 5736b6f..e483def 100644 --- a/src/ios/CDVViewController+SplashScreen.m +++ b/src/ios/CDVViewController+SplashScreen.m @@ -35,6 +35,13 @@ - (BOOL)enabledAutorotation { NSNumber *number = (NSNumber *)objc_getAssociatedObject(self, @selector(enabledAutorotation)); + + // Defaulting to YES to correspond parent CDVViewController behavior + if (number == nil) + { + return YES; + } + return [number boolValue]; }