title: Clearing UIWebView's Cache in Swift
body: <p>I have a UIWebView inside my app. This UIWebView needs to be reloaded fully (i.e. clear all cache of images/HTML/cookies etc.) every time when <code>viewDidLoad</code>.</p>
  
  <p>So is there any code I can do this in Swift?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>let myUrl = NSURL(string: "http://www.example.com")
  let myRequest = NSURLRequest(URL: myUrl!)
  myWebView.loadRequest(myRequest)
  </code></pre>
  
  <p>Thanks!</p>