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

IOS 清除UIWebview的缓存以及cookie

时间:2016-04-26 10:54:15      阅读:317      评论:0      收藏:0      [点我收藏+]

标签:

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

 缓存  清除
            [[NSURLCache sharedURLCache] removeAllCachedResponses];

IOS 清除UIWebview的缓存以及cookie

标签:

原文地址:http://www.cnblogs.com/wlsxmhz/p/5434046.html

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