1

在我的应用程序中,我希望用户点击一个按钮以从照片应用程序(相机胶卷)打印最后三张图像。我目前正在使用UIPrintInteractionController从应用程序中打印三个 UIImages printingitems。我如何对照片中的最后三个项目执行此操作?谢谢你。

@IBAction func print(sender: AnyObject) {

    var pic:UIPrintInteractionController = UIPrintInteractionController.sharedPrintController()!


    pic.delegate = self
    pic.showsPageRange = true
    pic.printingItems = [imageOne,imageTwo,imageThree]
    if UIDevice.currentDevice().userInterfaceIdiom == .Pad {
        pic.presentFromRect(self.printButton.frame, inView:self.view, animated:true, completionHandler: nil)
    } else {
        pic.presentAnimated(true, completionHandler: nil)
    }

}
4

0 回答 0