看過Document才發現,不是哪回事,
簡單幾行就要以了,IOS真係很為開發者著想。
UIPrintInteractionController* printController = [UIPrintInteractionController sharedPrintController];
UIPrintInfo *printInfo = [UIPrintInfo printInfo];
printInfo.outputType = UIPrintInfoOutputGeneral;
printInfo.jobName = @"Print Job - 1";
printController.printInfo = printInfo;
printController.printFormatter = [_webView viewPrintFormatter];
[printController presentAnimated:TRUE completionHandler:cUIPrintInteractionCompletionHandler];
UIPrintInfo *printInfo = [UIPrintInfo printInfo];
printInfo.outputType = UIPrintInfoOutputGeneral;
printInfo.jobName = @"Print Job - 1";
printController.printInfo = printInfo;
printController.printFormatter = [_webView viewPrintFormatter];
[printController presentAnimated:TRUE completionHandler:cUIPrintInteractionCompletionHandler];
沒有留言:
張貼留言