Hi I am making post request using AFnetworking 2.0. My request looks like this.
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager mana
Tried [manager.operationQueue cancelAllOperations]
?
POST
method return the AFHTTPRequestOperation
operation. You can cancel it by calling cancel
.
AFHTTPRequestOperation *post =[manager POST:nil parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
//doing something
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
// error handling.
}];
//Cancel operation
[post cancel];