From 15b9b588b2d7ccba8461345c804a2acb4a1bb65b Mon Sep 17 00:00:00 2001 From: filipe-nunes Date: Fri, 11 Mar 2016 14:46:31 -0100 Subject: [PATCH] CDV_IsIPad is deprecated Changed to if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) --- src/ios/APPPrinter.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios/APPPrinter.m b/src/ios/APPPrinter.m index f9bff4d..c23d95e 100755 --- a/src/ios/APPPrinter.m +++ b/src/ios/APPPrinter.m @@ -195,7 +195,7 @@ - (void) presentPrintController:(UIPrintInteractionController*)controller fromRect:(CGRect)rect { - if(CDV_IsIPad()) { + if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { [controller presentFromRect:rect inView:self.webView animated:YES completionHandler: ^(UIPrintInteractionController *ctrl, BOOL ok, NSError *e) { CDVPluginResult* pluginResult = @@ -275,4 +275,4 @@ isPrintingAvailable]; } -@end \ No newline at end of file +@end