So, Iām rewriting an application for iOS 7 with AFNetworking 2.0, and I ran into the problem of sending a packet of requests right away and tracking their progress. In the old AFNetworking, there was enqueueBatchOfHTTPRequestOperations:progressBlock:completionBlock: method on the AFHTTPClient , this is explicitly refactored, and I'm a bit confused about how to insert multiple requests.
I created a subclass of AFHTTPSessionManager , and I use the POST:... and GET:... methods to communicate with the server. But I can not find anything in the code and / or documents in order to embed several requests at the same time, as with the old AFHTTPClient .
The only thing I can find is the undocumented method batchOfRequestOperations:progressBlock:completionBlock: on AFURLConnectionOperation , but it looks like iOS 6's way of doing this.
Obviously, I'm missing something in the new NSURLSession concept, which I should use for batch requests or viewing the new AFNetworking feature. Hope someone can help me on the right track here!
tl; dr: How to send a request package with my subclass AFHTTPSessionManager ?
ios afnetworking afnetworking-2
Mac_Cain13 Oct 16 '13 at 9:43
source share