CB-10244 Don't rotate the iPhone 6 Plus splash

This commit is contained in:
daserge 2015-12-22 17:28:53 +03:00
parent 875ccbf5bc
commit fa3b665223

View File

@ -318,8 +318,8 @@
* landscape. In this case the image must be rotated in order to appear
* correctly.
*/
BOOL isIPad = [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad;
if (UIInterfaceOrientationIsLandscape(orientation) && !isIPad)
CDV_iOSDevice device = [self getCurrentDevice];
if (UIInterfaceOrientationIsLandscape(orientation) && !device.iPhone6Plus && !device.iPad)
{
imgTransform = CGAffineTransformMakeRotation(M_PI / 2);
imgBounds.size = CGSizeMake(imgBounds.size.height, imgBounds.size.width);