Update the comments and remove the unnecessary main queue check

This commit is contained in:
DreamPiggy 2017-12-03 14:18:01 +08:00
parent d9aaf001ca
commit e9a75c8539
1 changed files with 2 additions and 2 deletions

View File

@ -111,10 +111,10 @@ static char TAG_ACTIVITY_SHOW;
dispatch_main_async_safe(^{
[sself sd_setImage:targetImage imageData:targetData basedOnClassOrViaCustomSetImageBlock:setImageBlock];
});
// ensure completion block is called after custom setImage process finish
dispatch_group_notify(group, dispatch_get_main_queue(), ^{
dispatch_main_async_safe(callCompletedBlockClojure);
callCompletedBlockClojure();
});
return;
} else {
dispatch_main_async_safe(^{
[sself sd_setImage:targetImage imageData:targetData basedOnClassOrViaCustomSetImageBlock:setImageBlock];