CB-9240 Cordova splash screen plugin iPad landscape mode issue

Aligns shouldRotate default value with parent CDVViewController behavior
This commit is contained in:
daserge 2015-12-29 22:08:02 +03:00
parent d7841c7ec9
commit 3b2e9e5912

View File

@ -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];
}