Load local HTML file in webView

suggest change

First, add the HTML File to your Project (If you are asked to choose options for adding the file, select Copy items if needed)

The following line of code loads the content of the HTML file into the webView

webView.loadRequest(NSURLRequest(URL: NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("YOUR HTML FILE", ofType: "html")!})

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents