Update for #771 - instead of removing the old methods, deprecated them so we are backwards compatible.
This commit is contained in:
parent
6d01e80409
commit
23874cdca4
|
|
@ -220,4 +220,6 @@
|
|||
- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg("Method deprecated. Use `sd_setBackgroundImageWithURL:forState:placeholderImage:completed:`");
|
||||
- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg("Method deprecated. Use `sd_setBackgroundImageWithURL:forState:placeholderImage:options:completed:`");
|
||||
|
||||
- (void)cancelCurrentImageLoad __deprecated_msg("Use `cancelImageLoadForState:`");
|
||||
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -240,4 +240,9 @@ static char imageURLStorageKey;
|
|||
}];
|
||||
}
|
||||
|
||||
- (void)cancelCurrentImageLoad {
|
||||
// in a backwards compatible manner, cancel for current state
|
||||
[self cancelImageLoadOperationWithKey:[NSString stringWithFormat:@"UIButtonImageOperation%@", @(self.state)]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -173,4 +173,6 @@
|
|||
- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg("Method deprecated. Use `sd_setImageWithURL:placeholderImage:options:completed:`");
|
||||
- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedBlock)completedBlock __deprecated_msg("Method deprecated. Use `sd_setImageWithURL:placeholderImage:options:progress:completed:`");
|
||||
|
||||
- (void)cancelCurrentArrayLoad __deprecated_msg("Use `cancelCurrentAnimationImagesLoad`");
|
||||
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -172,4 +172,8 @@ static char imageURLKey;
|
|||
|
||||
}
|
||||
|
||||
- (void)cancelCurrentArrayLoad {
|
||||
[self cancelCurrentAnimationImagesLoad];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Reference in New Issue