Commit Graph

11 Commits

Author SHA1 Message Date
Olivier Poitrey 7d0e544c50 Add an option to disable on disk caching (fix #16) + refactor other options (low prio and retry failed) to an options: parameter 2011-10-03 15:54:49 +02:00
Olivier Poitrey 2b352c3c3a Perform disk cache out operations asynchronousely in order to prevent from blocking the main runloop when a lot of cache queries are performed at the same time 2010-09-16 22:56:11 +02:00
Olivier Poitrey dffff12607 If nil is given as URL to setImageWithURL:, set the image to the placeholder image (or nil if no placeholder)
This is the recommanded way clear an image for reuse (as a UITableViewCell for instance). Calling setImageWithURL:
with nil URL will have the effect to cancel an eventual currently in progress download of a thumbnail for this UIImageView.
Affecting the image property directly won't have this effect and may lead to image being re-affected once download is completed.
2010-09-16 13:02:33 +02:00
Olivier Poitrey 65549dec10 Better nil url handling 2010-06-12 16:37:47 +02:00
Olivier Poitrey 7350e1fa03 Fix english in new method naming 2010-06-11 16:32:35 +02:00
Olivier Poitrey d128c27cad Add `cancelCurrentImageLoading` method to UIImageView+WebCache 2010-06-11 15:06:04 +02:00
Olivier Poitrey 1cae0c4021 Set image to nil when trying to load nil URL 2010-06-11 06:17:54 +02:00
Olivier Poitrey 58a24963b5 Set references to nil after release in dealloc methods 2010-06-02 01:37:39 +02:00
Olivier Poitrey 79c5fa177d Fix the name of the SDWebImageManagerDelegate protocol 2009-09-28 23:56:24 +02:00
Olivier Poitrey 2fa0626aaa Remove the dirty hack of storing the helper into the first subview of the UIImageView and prevent duplicate downloads of the same URL
The helper (now called manager) is now handling the mapping between the UIImageView and its downloader.
This way we don't polute the UIImageView, and don't remove its capability to have subviews.
This change removes the automatic handling of image placeholder. The placeholder image can
be passed as second argument of setImageWithURL:placeholderImage:
The manager now handle duplicate downloads for the same URL gracefuly by sharing the same downloader
for all requestors.
Finaly, the manager handles URLs which can't create an image (HTTP error or invalid format) by flagging
them so it won't retry to download them again and again.
2009-09-24 02:35:14 +02:00
Olivier Poitrey 972c304957 Replace the SDWebImageView by an UIImageView category make the integration even simpler 2009-09-23 03:23:08 +02:00