diff --git a/ios/FastImage/FFFastImageView.m b/ios/FastImage/FFFastImageView.m index 3b11435..2d59e68 100644 --- a/ios/FastImage/FFFastImageView.m +++ b/ios/FastImage/FFFastImageView.m @@ -12,9 +12,7 @@ - (void)setSource:(FFFastImageSource *)source { if (_source != source) { - // Cancel any previous image loading in progress. - [self sd_cancelCurrentAnimationImagesLoad]; - + _source = source; // Set headers. [source.headers enumerateKeysAndObjectsUsingBlock:^(NSString *key, NSString* header, BOOL *stop) { [[SDWebImageDownloader sharedDownloader] setValue:header forHTTPHeaderField:key]; @@ -56,10 +54,4 @@ } } -- (void)removeFromSuperview { - // Cancel any loading. - [self sd_cancelCurrentAnimationImagesLoad]; - [super removeFromSuperview]; -} - @end