CB-7633 - (Re-fix based on updated unit tests) iPhone 6 Plus support

This commit is contained in:
Shazron Abdullah 2014-10-01 13:59:22 -07:00
parent 21f372acc9
commit 24e6f2e0dd

View File

@ -162,15 +162,17 @@
} else if (device.iPhone6) { // does not support landscape } else if (device.iPhone6) { // does not support landscape
imageName = [imageName stringByAppendingString:@"-667h"]; imageName = [imageName stringByAppendingString:@"-667h"];
} else if (device.iPhone6Plus) { // supports landscape } else if (device.iPhone6Plus) { // supports landscape
switch (currentOrientation) { if (isOrientationLocked) {
case UIInterfaceOrientationLandscapeLeft: imageName = [imageName stringByAppendingString:(supportsLandscape ? @"-Landscape" : @"")];
case UIInterfaceOrientationLandscapeRight: } else {
if (supportsLandscape) { switch (currentOrientation) {
imageName = [imageName stringByAppendingString:@"-Landscape"]; case UIInterfaceOrientationLandscapeLeft:
} case UIInterfaceOrientationLandscapeRight:
break; imageName = [imageName stringByAppendingString:@"-Landscape"];
default: break;
break; default:
break;
}
} }
imageName = [imageName stringByAppendingString:@"-736h"]; imageName = [imageName stringByAppendingString:@"-736h"];