开发者

How to clear cache image?

开发者 https://www.devze.com 2022-12-30 23:16 出处:网络
I have created thumbnail view using Three20 bundle. I have successfully loade开发者_运维百科d and displayed the images in the view. Now i want to clear the cache images because everytime it shows only

I have created thumbnail view using Three20 bundle. I have successfully loade开发者_运维百科d and displayed the images in the view. Now i want to clear the cache images because everytime it shows only the previously cached image and not the updated or latest image. All images are retrieved from the RSS feed.

Please help me out.

Thanks.


[[TTURLCache sharedCache] removeAll:YES];?


Here are a couple of more TTURLCache methods if you don't want to clear the entire cache:

[[TTURLCache sharedCache] removeURL:@"documents://an_image.jpg" fromDisk:YES];
[[TTURLCache sharedCache] invalidateURL:@"documents://an_image.jpg"];

or

[[TTURLCache sharedCache] removeURL:@"http://example.com/an_image.jpg" fromDisk:YES];
[[TTURLCache sharedCache] invalidateURL:@"http://example.com/an_image.jpg"];
0

精彩评论

暂无评论...
验证码 换一张
取 消