mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-04-29 12:45:15 +08:00
Merge pull request #81 from farhanpatel/farhanpatel-placeholder
Placeholder image is set even if url is nil
This commit is contained in:
@@ -164,15 +164,18 @@
|
||||
}
|
||||
|
||||
[self cancelImageDownloadOnView:view];
|
||||
if (urls == nil || urls.count == 0) {
|
||||
[view pin_clearImages];
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (placeholderImage) {
|
||||
[view pin_setPlaceholderWithImage:placeholderImage];
|
||||
}
|
||||
|
||||
if (urls == nil || urls.count == 0) {
|
||||
if (!placeholderImage) {
|
||||
[view pin_clearImages];
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
PINRemoteImageManagerDownloadOptions options;
|
||||
if([view respondsToSelector:@selector(pin_defaultOptions)]) {
|
||||
options = [view pin_defaultOptions];
|
||||
|
||||
Reference in New Issue
Block a user