title: Prevent UIWebView allocating to much memory
body: <p>I have a problem with UIWebView. I am using this component for loading normal web pages on iPad/iPhone. UIWebView is presented in modalViewController. Some pages are very memory hungry and some also have Flash content.</p>
  
  <p>The problem is that sometimes on some pages I get memory warning</p>
  
  <pre><code>Received memory warning. Level=1
  </code></pre>
  
  <p>When this happens and when I close this modalViewController (which has page loaded in webView) than the previous view reloads itself automacially - method viewDidLoad is fired again.</p>
  
  <p>I suspect that some pages in UIWebView consume to much memory and than application release memory of its views, but does not crash.</p>
  
  <p>Is there a way to limit memory consumption of webView or is there any other way to avoid this memory warning?</p>
  
  <p>Thanks!</p>