From 29ace55cf170bb1a7efe3a58880b8f1c46ac3162 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Fri, 16 Sep 2011 23:26:03 -0500 Subject: [PATCH] Updating code example in README (setProgressBlock: -> setUploadProgressBlock:) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9cc95c6..a6c0e82 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ NSDictionary *parameters = [NSDictionary dictionaryWithObject:@"300x300" forKey: AFHTTPRequestOperation *operation = [AFHTTPRequestOperation operationWithRequest:request completion:^(NSURLRequest *request, NSHTTPURLResponse *response, NSData *data, NSError *error) { NSLog(@"Upload Complete"); }]; -[operation setProgressBlock:^(NSUInteger totalBytesWritten, NSUInteger totalBytesExpectedToWrite) { +[operation setUploadProgressBlock:^(NSUInteger totalBytesWritten, NSUInteger totalBytesExpectedToWrite) { NSLog(@"Sent %d of %d bytes", totalBytesWritten, totalBytesExpectedToWrite); }];