Does UIWebView leak memory?

前端 未结 4 1065
陌清茗
陌清茗 2020-12-03 06:05

If your iPhone app uses a UIWebView, and loads many pages with large images, you may find that you are leaking memory. Can this be resolved?

4条回答
  •  醉话见心
    2020-12-03 06:14

    It is a known problem.

    Marco Arment mentions the leak here. http://blog.instapaper.com/post/60628543

    There isn't a lot you can do. One option in to "intercept" the html try to truncate parts that you don't need. Obviously, this won't likely work for a general purpose webview.

    In the meantime, you may just have to wait for an update from Apple.

提交回复
热议问题