From c3a5867c81d207a32ab33ee3d2ee5c3c8b8e450e Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Tue, 27 Jan 2015 10:20:17 -0500 Subject: [PATCH] CB-8351 ios: Stop using deprecated IsIpad macro --- src/ios/CDVSplashScreen.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ios/CDVSplashScreen.m b/src/ios/CDVSplashScreen.m index f65a501..c28ae2f 100644 --- a/src/ios/CDVSplashScreen.m +++ b/src/ios/CDVSplashScreen.m @@ -234,7 +234,8 @@ * landscape. In this case the image must be rotated in order to appear * correctly. */ - if (UIInterfaceOrientationIsLandscape(orientation) && !CDV_IsIPad()) { + BOOL isIPad = [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad; + if (UIInterfaceOrientationIsLandscape(orientation) && !isIPad) { imgTransform = CGAffineTransformMakeRotation(M_PI / 2); imgBounds.size = CGSizeMake(imgBounds.size.height, imgBounds.size.width); }