Pārlūkot izejas kodu

Updating code example in README (setProgressBlock: -> setUploadProgressBlock:)

Mattt Thompson 14 gadi atpakaļ
vecāks
revīzija
c74eca7c9b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      README.md

+ 1 - 1
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);
 }];