CDV_IsIPad is deprecated

Changed to if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
This commit is contained in:
filipe-nunes 2016-03-11 14:46:31 -01:00
parent 4723b6b297
commit 15b9b588b2

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 =