ios webview清除缓存
2015-05-29 10:08
330 查看
UIWebView清除Cookie:
UIWebView清除缓存:
(By ItNoob.Matrix 链接 http://www.cnblogs.com/ItNoob)
分类: ios2012-12-24 11:17 1013人阅读 评论(0) 收藏 举报
[cpp] view plaincopy
NSURLCache * cache = [NSURLCache sharedURLCache];
[cache removeAllCachedResponses];
[cache setDiskCapacity:0];
[cache setMemoryCapacity:0];
//清除cookies NSHTTPCookie *cookie; NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; for (cookie in [storage cookies]) { [storage deleteCookie:cookie]; }
UIWebView清除缓存:
//清除UIWebView的缓存 [[NSURLCachesharedURLCache] removeAllCachedResponses];
(By ItNoob.Matrix 链接 http://www.cnblogs.com/ItNoob)
分类: ios2012-12-24 11:17 1013人阅读 评论(0) 收藏 举报
[cpp] view plaincopy
NSURLCache * cache = [NSURLCache sharedURLCache];
[cache removeAllCachedResponses];
[cache setDiskCapacity:0];
[cache setMemoryCapacity:0];
相关文章推荐
- iOS开发宝典:String用法大全
- Android USB编程
- xcode 报错xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer/") does not
- 可以运用到android项目中的一些小技巧
- Android系统中app层调用硬件信息
- Chapter12. Foundation Classes and selector in Objective-C
- Android---49---使用ServerSocket创建服务器端
- iOS集合
- SimpleAdapter和Baseadapter填充listActivity-android学习之旅()
- SimpleAdapter和Baseadapter填充listActivity-android学习之旅()
- SimpleAdapter和Baseadapter填充listActivity-android学习之旅()
- Android自定义控件View(二)继承控件
- 实现iOS应用图标右上角数字badge number提醒
- iOS中的排序笔记
- 微信运营:必须收藏的101条万能微信标题公式
- 类似iOS自带相册应用的图片浏览的实现
- android ids.xml资源的使用
- 更改make版本由于编译4.0Android需要3.81make所以重新安装
- Android中Application类用法
- IOS相册功能