How to clear UIWebView cache?(如何清除 UIWebView 缓存?)
问题描述
我需要 UIWebView 来显示一些本地 .webarchive 文件.但是那里的图像名称相同,因此 UIWebView 始终只显示一张图像.如何清除缓存?
I need UIWebView to display some local .webarchive file. But images there have same names, so UIWebView shows only one image all the time. How can I clear the cache?
提前致谢
推荐答案
// Flush all cached data
[[NSURLCache sharedURLCache] removeAllCachedResponses];
这篇关于如何清除 UIWebView 缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!