ios - AFHTTPRequestOperationManager isn't call (no response/no faillure) -
here's code :
[[afnetworkreachabilitymanager sharedmanager] startmonitoring]; mainmanager = [afhttprequestoperationmanager manager]; mainmanager.requestserializer.timeoutinterval = 30;
i initialise afhttprequestoperationmanager 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 display in logs, none of "result" or "error" displayed, , b displayed.
is there exception afhttprequestoperationmanager dodge ?
i can not comment @ moment, using answer options. shouldn't urltowhere parameter this
urltowhere = @"http://myurl.php";
Comments
Post a Comment