让用户选择AirPrint OutputType

时间:2015-11-24 20:58:37

标签: ios swift output airprint uiprintinteractioncntrler

我使用以下代码来制作东西:

let printInfo = UIPrintInfo(dictionary:nil)
printInfo.outputType = .General
printInfo.jobName = "PrintImage"
let printController = UIPrintInteractionController.sharedPrintController()
printController.printInfo = printInfo
printController.printingItem = myImageView.image
printController.presentFromRect(button.frame, inView: self.view, animated: true, completionHandler: nil)

有没有办法让用户在输出类型(.GrayScale.General之间进行选择,即?)?

我试过了printInfo.outputType = [.General, .GrayScale],但那不起作用......

提前致谢:)

0 个答案:

没有答案