So I just updated to the new Xcode8 and Swift3 but now my web view does not work. Here is the code I used:
Xcode8
Swift3
UIWebView.loadRequest(webVie
class WebView: UIViewController {
@IBOutlet var myWebView: UIWebView! var urlValue = "" override func viewDidLoad() { super.viewDidLoad() if let url = URL (string: urlValue){ let requestObj = URLRequest(url: url) _ = myWebView.loadRequest(requestObj) } }
}