Update UIImageView+WebCache.m
Can cause animation losing or crash if you are in a thread.
This commit is contained in:
parent
5f4d7f44b4
commit
54a772ebb9
|
@ -43,7 +43,9 @@ static char imageURLKey;
|
||||||
objc_setAssociatedObject(self, &imageURLKey, url, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
|
objc_setAssociatedObject(self, &imageURLKey, url, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
|
||||||
|
|
||||||
if (!(options & SDWebImageDelayPlaceholder)) {
|
if (!(options & SDWebImageDelayPlaceholder)) {
|
||||||
self.image = placeholder;
|
dispatch_main_async_safe(^{
|
||||||
|
self.image = placeholder;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (url) {
|
if (url) {
|
||||||
|
|
Loading…
Reference in New Issue