Hi everyone.
Using the following example, from the RestKit git page:
RKObjectRequestOperation *operation = [[RKObjectRequestOperation alloc] initWithRequest:request responseDescriptors:@[responseDescriptor]];
[operation setCompletionBlockWithSuccess:^(RKObjectRequestOperation *operation, RKMappingResult *result) {
NSLog(@"The public timeline Tweets: %@", [result array]);
} failure:nil];
[operation start];
It works fine, but the completionBlock runs asynchronous, is there a way to run it synchronous? I need a way to wait this request be done before run my next statement.
Regards.