This one is driving me crazy early this morning. I want to load some local html into a web view:
class PrivacyController: UIViewController { @IBOutlet w
To retrieve URLs for application resources, you should use URLForResource method of NSBundle class.
URLForResource
NSBundle
Swift 2
let url = NSBundle.mainBundle().URLForResource("privacy", withExtension:"html")
Swift 3
let url = Bundle.main.url(forResource: "privacy", withExtension: "html")