Loading local css & js files into WKWebView
问题 in Swift 2.1.1 & Xcode 7.1 My code uses WKWebView and loads index.html form a local file but fails to load index.css and other javascript files as shown in the head tag. My best guess is that the baseURL is not correct, if so, How can I set the baseURL correctly? Thanks import UIKit import WebKit class ViewController: UIViewController { @IBOutlet var containerView: UIView! = nil //allows the class to refrence WKWebView var webView: WKWebView? override func loadView() { super.loadView() self