title: IOS7: Webview memory leak
body: <p>I know this is a very recurring topic but, i tried all the suggested solutions they seem not to work...
  The scenario:</p>
  
  <ol>
  <li>I load an empty view and i add at run time an UIWebview.It is a global variable,initiated only once.</li>
  <li>the initial memory usage (by Xcode 5.1) is ~6MBytes.</li>
  <li>i will load in the view a series of url using a button event.Each time is pressed a new page will be loaded.</li>
  <li>i load in the webView the first page from internet with few image and one video.</li>
  <li>After the loadRequest is completed, the memory is ~20Mbytes.</li>
  <li>Every time i load a new page the memory increases.</li>
  <li>The memory stays the same even when i load a new controller...</li>
  </ol>
  
  <p>What I tried so far:</p>
  
  <ul>
  <li>To use the [NSURLCache sharedURLCache] and related functions to instantiate a fixed amount of cache in the Application delegate: the App does not care...memory changes despite the limit of 32MBytes i set.</li>
  <li>To set to nil the global variable: no effect.</li>
  <li>To use temporary UIWebview(s) instead of the global one; views are removed from the superview each time the controller changes: no effect.</li>
  </ul>
  
  <p>None of this tentatives have been successful...the memory increase and it is never released.
  If i start the video from the web browser and then i load a new controller, the sound of the video still runs in the background...</p>
  
  <p>What am I missing???
  Thank you in advance</p>