nicklockwood / AsyncImageView

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#asyncimageview
Other
906 stars 186 forks source link

How to clear cache #30

Closed winterlovesong closed 9 years ago

winterlovesong commented 11 years ago

i load image for URL.

MilapKundalia commented 10 years ago

[AsyncImageLoader sharedLoader].cache = nil;

nicklockwood commented 9 years ago

That clears the cache, but also prevents any future images being cached. The correct way is:

[[AsyncImageLoader sharedLoader].cache removeAllObjects];