Add the ability for ASNetworkImageNodes to keep track of their progressive image quality

This commit is contained in:
Wendy
2016-04-21 18:57:53 -07:00
parent f7985d2d26
commit 0b55df9649
8 changed files with 109 additions and 27 deletions

View File

@@ -469,7 +469,7 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent
ASImageDownloaderProgressImage progress = nil;
if (ASInterfaceStateIncludesVisible(interfaceState)) {
__weak __typeof__(self) weakSelf = self;
progress = ^(UIImage * _Nonnull progressImage, id _Nullable downloadIdentifier) {
progress = ^(UIImage * _Nonnull progressImage, CGFloat progress, id _Nullable downloadIdentifier) {
__typeof__(self) strongSelf = weakSelf;
if (strongSelf == nil) {
return;