Skip to content

Commit 6440848

Browse files
author
yuzheng.tz
committed
完善demo
1 parent f4c6c07 commit 6440848

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

TZImagePreviewController/ViewController.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ - (void)configImageView:(UIImageView *)imageView URL:(NSURL *)URL completion:(vo
145145
}
146146
}];
147147
} else {
148-
[imageView sd_setImageWithURL:URL];
148+
[imageView sd_setImageWithURL:URL completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
149+
if (completion) {
150+
completion();
151+
}
152+
}];
149153
}
150154
}
151155

0 commit comments

Comments
 (0)