How to use Progress parameter in AFNetworking 2.0
问题 I am trying to use AFNetworking 2.0 with NSURLSession. I am using the method - (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromFile:(NSURL *)fileURL progress:(NSProgress * __autoreleasing *)progress completionHandler:(void (^)(NSURLResponse *response, id responseObject, NSError *error))completionHandler; How am I supposed to use the progress parameter. The method is a non blocking method. Hence I will have to listen to the ' progress ' to get the updates. But the