error handling with NSURLConnection sendSynchronousRequest
- by Nnp
how can i do better error handling with NSURLConnection sendSynchronousRequest? is there any way i can implement
- (void)connection:(NSURLConnection *)aConn didFailWithError:(NSError *)error
i have a nsoperation queue which is getting data in background thats why i have sync request.
and if i have to implement async request then how can i wait for request to get complete. because that method can't proceed without data.