Here's my code :
[[AFNetworkReachabilityManager sharedManager] startMonitoring];
mainManager = [AFHTTPRequestOperationManager manager];
mainManager.requestSerializer.timeoutInterval = 30;
I initialise my AFHTTPRequestOperationManager like this.
urlToWhere = @"myurl.php";
parameters = @{@"user_id": "1"};
NSLog(@"a");
[mainManager POST:urlToWhere parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSLog(@"result");
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"error");
}];
NSLog(@"b");
The fact is my a is display in the logs, but none of "result" or "error" are displayed, and then the b is displayed.
Is there any exception where the AFHTTPRequestOperationManager would be dodge ?