Merge pull request #79 from filipe-nunes/patch-1
CDV_IsIPad is deprecated
This commit is contained in:
commit
2bbe49566c
@ -195,7 +195,7 @@
|
|||||||
- (void) presentPrintController:(UIPrintInteractionController*)controller
|
- (void) presentPrintController:(UIPrintInteractionController*)controller
|
||||||
fromRect:(CGRect)rect
|
fromRect:(CGRect)rect
|
||||||
{
|
{
|
||||||
if(CDV_IsIPad()) {
|
if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
|
||||||
[controller presentFromRect:rect inView:self.webView animated:YES completionHandler:
|
[controller presentFromRect:rect inView:self.webView animated:YES completionHandler:
|
||||||
^(UIPrintInteractionController *ctrl, BOOL ok, NSError *e) {
|
^(UIPrintInteractionController *ctrl, BOOL ok, NSError *e) {
|
||||||
CDVPluginResult* pluginResult =
|
CDVPluginResult* pluginResult =
|
||||||
|
Loading…
Reference in New Issue
Block a user