From e457fc980d5eb172d0e5db8b51fb5862fe98479a Mon Sep 17 00:00:00 2001 From: duanhong Date: Tue, 2 Feb 2016 13:09:26 +0800 Subject: [PATCH] fix: wrong methods called. --- UIKit+AFNetworking/UIButton+AFNetworking.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UIKit+AFNetworking/UIButton+AFNetworking.m b/UIKit+AFNetworking/UIButton+AFNetworking.m index 9ea2b99537..83b734eda8 100644 --- a/UIKit+AFNetworking/UIButton+AFNetworking.m +++ b/UIKit+AFNetworking/UIButton+AFNetworking.m @@ -220,7 +220,7 @@ - (void)setBackgroundImageForState:(UIControlState)state return; } - [self cancelImageDownloadTaskForState:state]; + [self cancelBackgroundImageDownloadTaskForState:state]; AFImageDownloader *downloader = [[self class] sharedImageDownloader]; id imageCache = downloader.imageCache; @@ -253,7 +253,7 @@ - (void)setBackgroundImageForState:(UIControlState)state } else if(responseObject) { [strongSelf setBackgroundImage:responseObject forState:state]; } - [strongSelf af_setImageDownloadReceipt:nil forState:state]; + [strongSelf af_setBackgroundImageDownloadReceipt:nil forState:state]; } }