Sunday, 11 August 2013

RestKit blocks UI thread

RestKit blocks UI thread

My code looks like this:
[[RKObjectManager sharedManager] getObjectsAtPath:kResourcePath
parameters:params
success:^(RKObjectRequestOperation *operation, RKMappingResult
*mappingResult) {...}
failure:^(RKObjectRequestOperation *operation, NSError *error) {...}];
The problem is that this method blocks my UI thread. I tried figuring how
to use RKObjectRequestOperation but only saw options with NSURLRequest
which is not the case here. What am I missing?

No comments:

Post a Comment