From 24e6f2e0dd3f54781bd9b9f16d49585ace53d10a Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Wed, 1 Oct 2014 13:59:22 -0700 Subject: [PATCH] CB-7633 - (Re-fix based on updated unit tests) iPhone 6 Plus support --- src/ios/CDVSplashScreen.m | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/ios/CDVSplashScreen.m b/src/ios/CDVSplashScreen.m index 91fb251..ade5df0 100644 --- a/src/ios/CDVSplashScreen.m +++ b/src/ios/CDVSplashScreen.m @@ -162,15 +162,17 @@ } else if (device.iPhone6) { // does not support landscape imageName = [imageName stringByAppendingString:@"-667h"]; } else if (device.iPhone6Plus) { // supports landscape - switch (currentOrientation) { - case UIInterfaceOrientationLandscapeLeft: - case UIInterfaceOrientationLandscapeRight: - if (supportsLandscape) { - imageName = [imageName stringByAppendingString:@"-Landscape"]; - } - break; - default: - break; + if (isOrientationLocked) { + imageName = [imageName stringByAppendingString:(supportsLandscape ? @"-Landscape" : @"")]; + } else { + switch (currentOrientation) { + case UIInterfaceOrientationLandscapeLeft: + case UIInterfaceOrientationLandscapeRight: + imageName = [imageName stringByAppendingString:@"-Landscape"]; + break; + default: + break; + } } imageName = [imageName stringByAppendingString:@"-736h"];