CB-8351 ios: Stop using deprecated IsIpad macro

This commit is contained in:
Andrew Grieve 2015-01-27 10:20:17 -05:00
parent e86a9cc7a4
commit c3a5867c81

View File

@ -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);
}