title: iOS 8 Free Memory after WebView (swift)
body: <p>Currently i got a small problem with WebViews that dont release there memory usage in time, i m calling some webviews (the user can open them switch back to a map (via Tabbar) and open a new one),</p>
  
  <p>Everytime a WebView is called it use up to 30MB RAM, so after 10 WebViews the App runs into a memory warning, so i m looking for a way (as i found in other Posts there is no way caus it handled automatic) to release the memory after switching back to the map from the webview.</p>
  
  <p>This is how i call my WebView</p>
  
  <pre><code>import UIKit
  
  class ViewController_webView: UIViewController {
  /* ################################################## IBOutlets ################################################## */
      @IBOutlet weak var webView: UIWebView!
      @IBOutlet weak var TBB_shop: UITabBarItem!
      @IBOutlet weak var activity: UIActivityIndicatorView!
  /* ################################################## Home Button ################################################## */
      @IBAction func BThome(sender: AnyObject) {
  
          var shopurl = "http://google.com"
          let webviewURL = NSURL(string: shopurl)
          let request = NSURLRequest(URL: webviewURL)
          webView.loadRequest(request)
      }
  /* ################################################## ViewDidLoad ################################################## */
      override func viewDidLoad() {
          super.viewDidLoad()
  
          var TBB_shop_img = UIImage(named: "TabbarShopping.png") as  UIImage
          TBB_shop.selectedImage = TBB_shop_img
      }
  /* ################################################## MemoryWarning ################################################## */
      override func didReceiveMemoryWarning() {
  
          super.didReceiveMemoryWarning()
          println("Memory Warning")
      }
  /* ################################################## viewWillAppear ################################################## */
      override func viewWillAppear(animated: Bool) {
  
          var shopurl = "http://google.com"
          let webviewURL = NSURL(string: shopurl)
          let request = NSURLRequest(URL: webviewURL)
          webView.loadRequest(request)
      }
  /* ################################################## Activity Indicator ################################################## */
      func webViewDidStartLoad(_ : UIWebView){activity.startAnimating()}
      func webViewDidFinishLoad(_ : UIWebView){activity.stopAnimating()}
  
  
  
  }
  </code></pre>
  
  <p>Is there anyway to use the </p>
  
  <pre><code>override func viewDidDisappear(animated: Bool) {
          &lt;#code#&gt;
      }
  </code></pre>
  
  <p>to release the memory usage of a webview? Or anyway to reduce the usage of memory?</p>