webview清除缓存
把这几行代码进来就行了,具体效果能不能达到需求你也不知道,没法测。
[[NSURLCache sharedURLCache] removeAllCachedResponses];
for (NSHTTPCookie *cookie in [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]) {
[[NSHTTPCookieStorage sharedHTTPCookieStorage] deleteCookie:cookie];
}
有博文也是这么写的http://blog.csdn.net/zhaoweixing1989/article/details/13021571
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。