我正在使用以下代码来打印东西:
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
ie)之间进行选择?
我试过printInfo.outputType = [.General, .GrayScale]
了,但没有奏效......
提前致谢 :)