From 8b2990496768113d00564635bf44ec8cdf0e84de Mon Sep 17 00:00:00 2001 From: Allen Tu Date: Fri, 4 Oct 2013 12:11:01 -0700 Subject: [PATCH] Update UIProgressView+AFNetworking.m Hi there, Thanks for the awesome job!! Just found a tiny bug. I think in Line 174, the selector should be "countOfBytesReceived". Cheers and have a nice weekend!! Allen --- UIKit+AFNetworking/UIProgressView+AFNetworking.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UIKit+AFNetworking/UIProgressView+AFNetworking.m b/UIKit+AFNetworking/UIProgressView+AFNetworking.m index b01a241..ff9f24a 100644 --- a/UIKit+AFNetworking/UIProgressView+AFNetworking.m +++ b/UIKit+AFNetworking/UIProgressView+AFNetworking.m @@ -171,7 +171,7 @@ static char kAFDownloadProgressAnimated; } if (context == AFTaskCountOfBytesReceivedContext) { - [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesSent))]; + [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesReceived))]; } } @catch (NSException * __unused exception) {}