I have created an app that simply loads my pages into a UIWebView
in Swift 3. The problem is that pages seem to cache and do not reload any changes. Anyone know how to clear the cache or delete the file data when the app closes in Xcode 8/Swift 3?
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var MainWebView: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
let url = NSURL(string: "http://www.webpage.com")
let request = NSURLRequest(url: url! as URL)
MainWebView.loadRequest(request as URLRequest)
}
}