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
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"];