I have an iPad graphics application that has a UIWebView. Using the simulator (iOS 4.2.1), I see that Real Mem increases quite a lot when I browse. The more I browse, the more RAM it uses. When I close the UIWebView and free it, some of the used memory is freed, but not all. This is annoying. Good, so maybe because he is not released immediately. Good. But then I would expect the system to do some cleanup when there is a memory warning. However, if I browse and then close UIWebView (and release it) and then trigger a memory warning in the simulator, Real Mem will not change! WTF?
So why is that? Why is UIWebView not better at restoring memory in the system? And why does he not respond to memory warnings? Did I miss something?
theory
source share