I have an iPad application (iOS 4.3 and 5.0) that creates a UIView with at least two subqueries each time a user's pages go forward or backward. The 2 subclauses are UIWebView objects.
With each appropriate scroll, the old UIWebViews are removed and freed up properly (removeFromSuperview, then stopLoading and set the delegate to nil), and the parent UIView is freed. I can confirm that both parent UIView and 2 child UIWebViews have completely disappeared.
I see a save counter on webviews as they are deleted, and I am sure that they really are deleted every time. However, the memory distribution continues to increase with each scroll ~ 200-350 thousand. There are no leaks in the tool, but I see that the memory usage is slowly growing. On iPad 1, the application eventually (within 6-10 minutes of moderate use) receives several memory warnings and stops. A LowMemory alarm log is created ... etc.
We use stringByEvaluatingJavaScriptFromString and loadRequest to populate Webviews. Memory usage increases even when nothing is entered or loaded into webViews.
Does anyone experience this behavior with UIWebViews? Has anyone dealt with this successfully?
I would like comments and answers to be appreciated.
source share