title: UIWebview Does NOT complete Load page with "page NOT found" error when URL does not exist
body: <p>In my iphone app I've got to load a mobile website to a webview (that contain in a separate viewcontroller). All good and working fine.</p>
  
  <p>I need to exit from webview when reach to specific set of URL's. The problem is some of these url's does not exis and therefore page does not finish load (Even with page not found error message to detect current url. Just hangs)</p>
  
  <p>Would like to know if I have to enable any setting in the webView to allow load pages that does not really exist (With page not found error). </p>
  
  <p><strong>OR</strong></p>
  
  <p>Is this possible to know which URL going to load next in<br>
  <strong>func webViewDidStartLoad(webView: UIWebView)</strong></p>
  
  <pre><code> override func viewDidLoad()
   {
      super.viewDidLoad()
      myWebview.delegate = self
  
      var returnUrlAppendedPaymmentLink = "www.existing_url.com"
      let requestURL = NSURL(string: returnUrlAppendedPaymmentLink)
      let request = NSURLRequest(URL: requestURL!)
  
      myWebview.loadRequest(request)
   }
  
   func webViewDidFinishLoad(webView: UIWebView)
   {
      var currentUrl = webView.request?.URL?.absoluteString ?? ""
      if (currentUrl == "www.special_url.com")
      {
          self.navigationController?.popViewControllerAnimated(true)
      }
   }
  </code></pre>