Updating code example in README (setProgressBlock: -> setUploadProgressBlock:)
This commit is contained in:
parent
04dad96904
commit
c74eca7c9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue