码迷,mamicode.com
首页 > Web开发 > 详细

uiwebview 清缓存。,mark

时间:2015-07-15 12:44:11      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:

//清除cookies
NSHTTPCookie *cookie;
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (cookie in [storage cookies]) 
{
    [storage deleteCookie:cookie];
}
技术分享

 

UIWebView清除缓存:

//清除UIWebView的缓存
[[NSURLCachesharedURLCache] removeAllCachedResponses];

uiwebview 清缓存。,mark

标签:

原文地址:http://www.cnblogs.com/Keys/p/4647687.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!