title: Swift3 UIWebView delegate method not being called
body: <p>Code :</p>
  
  <pre><code>let termWebView = UIWebView(frame:CGRect(x:0, y:20, width:320, height:400))
  termWebView.delegate = self
  self.view.addSubview(termWebView)
  
          if let url = URL(string: “http://www.google.co.in”)
              termWebView.loadRequest(request)
          }
  
  
          func webView(_ webView: UIWebView, didFailLoadWithError error: Error)
          {
  
          }
  
         func webViewDidFinishLoad(webView: UIWebView!)
          {
  
          }
  </code></pre>
  
  <p>I created a simple webview and set the delegate.but the delegate methods are not being called.what is wrong with code?any help will be appreciated.thanks in advance</p>