IOS 清除UIWebview的缓存以及cookie

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

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

posted @ 2016-04-26 10:26  小屁孩~  阅读(987)  评论(0)    收藏  举报