开发者

Slow loading of PDFs in UIWebView

I am using a UIWebView to load local PDFs in an app I am writing. Some pdfs (several hundred pages) load 开发者_如何转开发very quickly, while ones that were encoded using Adobe Acrobat (screen scrapes from a website) are loading very slowly - they are much smaller in size (generally less than a few mbs) and much shorter. The weird part is they load quickly in the simulator, but take 10-30 seconds on device. Is this some sort of encoding issue?


The simulator doesn't emulate the device's resources. In your case, the simulator has access to much more memory so it can cache more. Your device, on the other hand, is probably having to deal with memory warnings which subsequently means it's keeping less in memory. Less memory means more rendering means more latency.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜