Small code changes

This commit is contained in:
Sebastián Katzer 2013-12-11 13:38:01 +01:00
parent 9fc84624df
commit 83fcdc8612

View File

@ -47,7 +47,7 @@
CDVPluginResult* pluginResult;
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK
messageAsBool:[self isPrintServiceAvailable]];
messageAsBool:[self isPrintServiceAvailable]];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
@ -71,9 +71,7 @@
[self adjustSettingsForPrintController:controller];
[self loadContent:content intoPrintController:controller];
[controller presentAnimated:YES completionHandler:^(UIPrintInteractionController* printController, BOOL completed, NSError* error) {
}];
[self openPrintController:controller];
[self commandDelegate];
}
@ -119,6 +117,16 @@
controller.showsPageRange = YES;
}
/**
* Zeigt den PrintController an.
*/
- (void) openPrintController:(UIPrintInteractionController*)controller
{
//[self.commandDelegate runInBackground:^{
[controller presentAnimated:YES completionHandler:NULL];
//}];
}
/**
* Überprüft, ob der Drucker-Dienst verfügbar ist.
*/