iOS UIWebView清除缓存
2014-10-27 16:44
288 查看
UIWebView清除Cookie:
UIWebView清除缓存:
//清除cookies NSHTTPCookie *cookie; NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; for (cookie in [storage cookies]) { [storage deleteCookie:cookie]; }
UIWebView清除缓存:
//清除UIWebView的缓存 [[NSURLCache sharedURLCache] removeAllCachedResponses]; //清除缓存(全) NSURLCache * cache = [NSURLCache sharedURLCache]; [cache removeAllCachedResponses]; [cache setDiskCapacity:0]; [cache setMemoryCapacity:0];
相关文章推荐
- iOS清除UIWebView的缓存以及cookie
- iOS开发73-清除UIWebView的缓存,H5页面第二次加载显示了第一次的页面
- iOS UI篇 - UIWebView缓存清除
- IOS 清除UIWebview的缓存以及cookie
- 浅谈iOS中WKWebView和UIWebView的清除缓存问题
- iOS--UIWebView清除缓存和Cookie
- IOS 清除UIWebview的缓存以及cookie
- IOS 清除UIWebView的缓存
- IOS 之 计算缓存,清除缓存
- UIWebView清除缓存和cookie
- ios 手动清除本地沙盒中的缓存数据
- 【IOS开发】UIWebview 的缓存策略和验证,以及 web 相关
- 清除UIWebView的缓存
- ios webview清除缓存
- ios之清除cell缓存,解决cell的重用问题。
- IOS开发——ASIDownloadCache计算缓存大小&清除缓存
- ios之清除cell缓存,解决cell的重用问题。
- ios webview清除缓存
- 清除UIWebView的缓存
- 使用UIWebView联合登录后清除缓存的方法。