CDV_IsIPad is deprecated
Changed to if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
This commit is contained in:
parent
4723b6b297
commit
15b9b588b2
@ -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 =
|
||||||
@ -275,4 +275,4 @@
|
|||||||
isPrintingAvailable];
|
isPrintingAvailable];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
Reference in New Issue
Block a user