UIWebView memory management

Posted by wolfrevo on Stack Overflow See other posts from Stack Overflow or by wolfrevo
Published on 2010-06-01T15:07:12Z Indexed on 2010/06/01 15:13 UTC
Read the original article Hit count: 403

Hello, I have a problem with memory management.

I am developing an application that makes heavy use of UIWebView. This app generates dynamically lots of UIWebViews while loading content from my server. Some of these UIWebViews are quite large and have a lot of pictures.

If I use instruments to detect leaks, I do not detect any. However, lots of objects are allocated and I suspect that has to do with the UIWebViews.

When the webviews release because no longer needed, it appears that not all memory is released. I mean, after a request to my server the app creates an UITableView and many webviews (instruments say about 8Mb). When user tap back, all of them are released but memory usage only decrements about 2-3 Mb, and after 5-10 minutes using the app it crashes.

Am I missing something? Anyone know what could be happening?

Thank you!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa