I made extensive use of block support in ASIHttpRequest, and I found it to be an extremely elegant way of encoding asynchronous requests, and moreover, the delegate called back a separate function
Here is sample code for quick reference.
__block ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setCompletionBlock:^{ NSString *responseString = [request responseString]; }]; [request startAsynchronous];
I would like to start using Restkit, but I need to also use Restkit with blocks.
I saw the Restkit Block Wrapper wrapper here, but would like to check if this wrapper will work well in production, and if anyone has used it extensively before
ming yeow
source share