iOS清理WebView的缓存
2017-02-28 10:28
876 查看
NSHTTPCookie *cookie; NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; for (cookie in [storage cookies]){ [storage deleteCookie:cookie]; } //清除UIWebView的缓存 [[NSURLCache sharedURLCache] removeAllCachedResponses]; NSURLCache * cache = [NSURLCache sharedURLCache]; [cache removeAllCachedResponses]; [cache setDiskCapacity:0]; [cache setMemoryCapacity:0];
相关文章推荐
- ios webview清除缓存
- ios webview清除缓存
- iOS SDWebImage清理缓存数据
- IOS WKWebView--清除缓存、弹窗处理
- Android和iOS关于WebView(UIWebView)缓存的看法
- Android清理webview缓存
- webview清理缓存
- iOS 用 SDWebImage 清理图片缓存
- iOS 用 SDWebImage 清理图片缓存
- iOS如何实现网页缓存(实现webView的缓存)
- IOS应用加载本地WebView禁止进行缓存(使用私有api)
- iOS图片验证码使用SDWeb实现的加载如何实现清理缓存点击刷新
- IOS中对webView页面添加 缓存。
- iOS 用 SDWebImage 清理图片缓存
- ios webview清除缓存
- IOS应用加载本地WebView禁止进行缓存(使用私有api)
- iOS清除WebView的缓存
- iOS WebView 清楚缓存和Cookie
- Android模块化编程——WebView使用之清理缓存
- iOS webview清除缓存