一次打印多个UIWebView的内容 [英] Printing Contents of Multiple UIWebViews in one go

查看:125
本文介绍了一次打印多个UIWebView的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iPad应用程序,该应用程序使用WebViews显示URL列表.我希望能够一次打印所有WebView,而无需使用PrintInteractionController多次提示用户.问题在于PrintInteractionController似乎没有执行此操作的能力.您不能分配多个viewFormatter,并且WebView不被识别为printItems.我也找不到只打印项目而不显示PrintInteractionController的方法.

I have an iPad application that uses WebViews to display a list of URL's. I would like to be able to print all of the WebViews in one go, without prompting the user multiple times with the PrintInteractionController. The problem is that the PrintInteractionController does not appear to have the ability to do this. You cannot assign multiple viewFormatters, and the WebViews are not recognized as printItems. There is also no method that I can find to just print the items and not show the PrintInteractionController.

有人知道这样做的方法吗?

Does anyone know of a way to do this?

干杯.

推荐答案

使用UIPrintIterationController对象的printPageRenderer属性.您可以在UIPrintPageRenderer子类对象中设置多个UIPrintFormatter子类.

Use printPageRenderer property of your UIPrintIterationController object. You can set multiple UIPrintFormatter subclasses in a UIPrintPageRenderer subclass object.

这篇关于一次打印多个UIWebView的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆