Add `cancelCurrentImageLoading` method to UIImageView+WebCache
This commit is contained in:
parent
8cc6acb502
commit
d128c27cad
|
@ -13,5 +13,6 @@
|
|||
|
||||
- (void)setImageWithURL:(NSURL *)url;
|
||||
- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder;
|
||||
- (void)cancelCurrentImageLoading;
|
||||
|
||||
@end
|
||||
|
|
|
@ -46,6 +46,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (void)cancelCurrentImageLoading
|
||||
{
|
||||
[[SDWebImageManager sharedManager] cancelForDelegate:self];
|
||||
}
|
||||
|
||||
- (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image
|
||||
{
|
||||
self.image = image;
|
||||
|
|
Loading…
Reference in New Issue