iOS webView 缓存问题
2018-11-05 本文已影响39人
_Waiting_
// let request = URLRequest.init(url: NSURL.init(string: webUrl)! as URL)
解决方法:
let request = URLRequest.init(url: NSURL.init(string: webUrl)! as URL, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: 5)