ios webview清除缓存Cookie
2015-11-12 13:22
337 查看
ios webview清除缓存Cookie
UIWebView清除Cookie://清除cookies
NSHTTPCookie *cookie;
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (cookie in [storage cookies])
{
[storage deleteCookie:cookie];
}
UIWebView清除缓存:
//清除UIWebView的缓存
[[NSURLCachesharedURLCache] removeAllCachedResponses];
NSURLCache * cache = [NSURLCache sharedURLCache];
[cache removeAllCachedResponses];
[cache setDiskCapacity:0];
[cache setMemoryCapacity:0];
相关文章推荐
- iOS中的转场动画简介
- AVAudioSession.sharedInstance()设置支持静音式)(Call can throw, but it is not marked with 'try' and the error is not handled)
- Android中百度导航引擎初始化失败问题
- 通过继承ListActivity实现列表
- Android权限机制总结与常见权限不足问题分析
- Android中ListView与ScrollView混合使用
- Hybrid App for Android 资源整理(初步整理,待完善)
- ios开发--常用的高效开发的宏
- 转发在Visual Studio 2010/2012/2013/2015上使用C#开发Android/IOS安装包和操作步骤
- iOS编程——CGAffineTransform相关函数
- C#开发微信门户及应用(1)--开始使用微信接口
- Android之计算缓存大小并且清空缓存
- iOS开发企业版本分发 Xcode7.1
- iOS 生成随机数
- Swift对面向对象提供了良好的支持,下面介绍几个其独有的特性。
- ios xcode测试遇到的一些问题
- Mac下AndroidStudio升级svn到1.8以及更改svn Format为1.8
- iOS学习之VFL实现自动布局
- 自定义Android View属性
- android系统定制化添加按键驱动步骤