Merge pull request #79 from filipe-nunes/patch-1

CDV_IsIPad is deprecated
This commit is contained in:
Sebastián Katzer 2016-07-20 20:00:33 +02:00 committed by GitHub
commit 2bbe49566c

View File

@ -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 =