我正在尝试使用wi-fi打印机打印照片而不显示打印选项对话框 我想按下按钮并打印。如何禁用“打印选项”对话框?
我使用以下代码:
UIPrintInteractionController *printController = [UIPrintInteractionController sharedPrintController];
printController.printingItem = imageFromCurrentView;
UIPrintInfo *printInfo = [UIPrintInfo printInfo];
printInfo.outputType = UIPrintInfoOutputGrayscale;
printController.printInfo = printInfo;
printController.showsPageRange = YES;
[printController presentAnimated:YES completionHandler:completionHandler];