iPhone OS 3.2; PDF rendering; User Interaction

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 08:27:54

Using the CGPDF* operators will allow you to write a UIPDFView, which operates exactly as UIImageView but uses a PDF as the source image. Create your own custom subclass of UIView and implement drawRect: to, eventually, call CGContextDrawPDFPage. Based on a quick Google search (because I know the keywords), this page seems to explain that side of things quite well.

You can then directly substitute your custom UIView subclass for the UIImageView and proceed exactly as you have with the PNG solution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!