I've implemented this operation:
[NSURLConnection sendAsynchronousRequest:theRequest queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
if (connectionError) {
NSLog(@"Error %@ | contaShow %i",connectionError.description,_contaShow);
//OPERATIONS in case of error
} else {
//OPERATIONS in case of success
Sometime, if occurs a connection error (ex. lost connection) I want execute the code inside the if block. With debug I can see that the code lines are called, but aren't executed!!!
Somebody can tell me why?!?
Thanks...