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