What is the best way to view large PDFs on iOS?

2019-04-11 02:05发布

问题:

I am currently using QLPreviewController to view PDFs (250MB+) However it cannot deal with real large files. Either I get the info that not the whole file has been loaded or the whole app just dies. I also need to customize the view which is nit possible using QLPreviewController. What should I do? Use UIWebView instead? Or will I have to use CGContextDrawPDFPage? Using the latter, how will I get zooming implemented?

回答1:

I would go with your suggestion of using a UIWebView. Doing so will automatically give you zoom support and the UIWebView should handle loading extremely large PDF's.


If you have decided to go with Quartz, this link looks very promising for zoom support.