I have a 4 async network requests with a completion block. Upon completion, i want them to be added to a master NSMutableArray is the order that the requests were sent, but not the order they were received (as this may be different). I have a tag that I set when sending the request so I can use this tag in the completion block.
I have a 4 async network requests with a completion block. Upon completion, i
Share
Fill the array with four NSNulls initially. In the handler,
[yourArray replaceObjectAtIndex:tag withObject:responseObject].