I have a hierarchical application (NavigationController) with a simple table view in a role of the root controller. Each time you select any cell, you have got a new View with some information about the details (managed by DetailViewController). On the side of DetailViewController's view I have a UIWebView to display data from Internet. But the problem happens when I look at memory usage. Each new opened view of DetailViewController with its content loaded from the web via UiWebView brings more memory using coefficient. I'd like to unload everything and release memory allocated for that data when I get back to my root controller's view.
How do I manage that issue? I tried to stopLoading:
UIWebView's instance method to save some memory, but it doesn't solve the problem either. As well as I don't completely understand ARC process of work, I can't ensure myself if it is normally to have an increased memory using coefficient with each new opened detail view.
Thank you in advance!