From 40ad58571b5abf74f39b1aff470da6865a236848 Mon Sep 17 00:00:00 2001 From: muer2000 Date: Thu, 12 Nov 2015 15:45:47 +0800 Subject: [PATCH] Fixed #1361 sd_cancelBackgroundImageLoadForState Fixed sd_cancelBackgroundImageLoadForState in sd_setBackgroundImageWithURL method --- SDWebImage/UIButton+WebCache.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/UIButton+WebCache.m b/SDWebImage/UIButton+WebCache.m index 5bf66201..3df3804f 100644 --- a/SDWebImage/UIButton+WebCache.m +++ b/SDWebImage/UIButton+WebCache.m @@ -111,7 +111,7 @@ static char imageURLStorageKey; } - (void)sd_setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletionBlock)completedBlock { - [self sd_cancelImageLoadForState:state]; + [self sd_cancelBackgroundImageLoadForState:state]; [self setBackgroundImage:placeholder forState:state];