I am trying to change the print options that appear when using UIPrint.
UIPrintInteractionController *pic; void (^completionHandler)(UIPrintInteractionController *, BOOL, NSError *) = ^(UIPrintInteractionController *printController, BOOL completed, NSError *error) { if (!completed && error) { NSLog(@"Printing could not complete because of error: %@", error); } }; [pic presentAnimated:YES completionHandler:completionHandler];
There is a delegate to which you can answer:
- (UIViewController *)printInteractionControllerParentViewController:(UIPrintInteractionController *)printInteractionController
If I return from it, a dialog box will appear. If I return the navigation manager view manager, then the print options will not appear. I have no idea why.
On the corresponding issue, you can get a list of printers without using print options at all, and then print on a specific printer (thereby losing the need to display a representation of the printer settings).
source share