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

   //清除UIWebView的缓存  
    [[NSURLCache sharedURLCache] removeAllCachedResponses];  
     NSURLCache * cache = [NSURLCache sharedURLCache];  
     [cache removeAllCachedResponses];  
     [cache setDiskCapacity:0];  
     [cache setMemoryCapacity:0];

 

相关文章:

  • 2021-07-17
  • 2021-11-16
  • 2021-05-07
  • 2022-12-23
  • 2021-12-21
  • 2021-10-10
猜你喜欢
  • 2022-12-23
  • 2022-02-02
  • 2021-10-16
  • 2021-12-29
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案