Merge pull request #780 from rokgregoric/master
Do not load placeholder image if SDWebImageDelayPlaceholder option specified.
This commit is contained in:
commit
3a7adbbacf
|
@ -42,8 +42,7 @@ static char operationArrayKey;
|
|||
- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock {
|
||||
[self cancelCurrentImageLoad];
|
||||
objc_setAssociatedObject(self, &imageURLKey, url, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
|
||||
self.image = placeholder;
|
||||
|
||||
|
||||
if (!(options & SDWebImageDelayPlaceholder)) {
|
||||
self.image = placeholder;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue