Update UIImageView+WebCache.m

Can cause animation losing or crash if you are in a thread.
This commit is contained in:
eric@skrobs 2014-09-12 20:03:34 +02:00
parent 5f4d7f44b4
commit 54a772ebb9
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ static char imageURLKey;
objc_setAssociatedObject(self, &imageURLKey, url, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
if (!(options & SDWebImageDelayPlaceholder)) {
self.image = placeholder;
dispatch_main_async_safe(^{
self.image = placeholder;
});
}
if (url) {