Skip to content

Commit

Permalink
fix: wrong methods called.
Browse files Browse the repository at this point in the history
  • Loading branch information
duanhong169 committed Feb 16, 2016
1 parent 32547b0 commit e457fc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UIKit+AFNetworking/UIButton+AFNetworking.m
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ - (void)setBackgroundImageForState:(UIControlState)state
return;
}

[self cancelImageDownloadTaskForState:state];
[self cancelBackgroundImageDownloadTaskForState:state];

AFImageDownloader *downloader = [[self class] sharedImageDownloader];
id <AFImageRequestCache> imageCache = downloader.imageCache;
Expand Down Expand Up @@ -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];
}

}
Expand Down

0 comments on commit e457fc9

Please sign in to comment.