我使用以下代码来制作东西:
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]
,但那不起作用......
提前致谢:)