I feel that my question is really n00b; sorry if I don't say this clearly: /
In my project, I use a third-party structure that retrieves some data for me using the asynchronous NSURLRequests (RESTful API). When the data is received and ready, the didReceiveResponse delegate function is didReceiveResponse . In case of an error, didFailWithError is didFailWithError .
The problem is that the infrastructure cannot send requests to the queue, so if I consistently call the request methods, I get only the answer to the last issued request.
Now the problem is that I cannot change the frame code. Given this, is there a workaround for solving this problem? Something like: for a set of requests, request n + 1 is not issued until request n is completed (either didReceiveResponse or didFailWithError ); In addition, when the last request in the set is completed, I receive a kind of notification. Ideally, the solution should be supported for both iOS3 and iOS4.
source share