Small code changes
This commit is contained in:
parent
9fc84624df
commit
83fcdc8612
@ -71,9 +71,7 @@
|
|||||||
[self adjustSettingsForPrintController:controller];
|
[self adjustSettingsForPrintController:controller];
|
||||||
[self loadContent:content intoPrintController:controller];
|
[self loadContent:content intoPrintController:controller];
|
||||||
|
|
||||||
[controller presentAnimated:YES completionHandler:^(UIPrintInteractionController* printController, BOOL completed, NSError* error) {
|
[self openPrintController:controller];
|
||||||
|
|
||||||
}];
|
|
||||||
|
|
||||||
[self commandDelegate];
|
[self commandDelegate];
|
||||||
}
|
}
|
||||||
@ -119,6 +117,16 @@
|
|||||||
controller.showsPageRange = YES;
|
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.
|
* Überprüft, ob der Drucker-Dienst verfügbar ist.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user