You can cancel operations manually. You can get operations from the operation queue:
AFHTTPRequestOperationManager *manager = // ... for (NSOperation *operation in manager.operationQueue.operations) { // here you can check if this is an operation you want to cancel [operation cancel]; } // or just cancel all of them! [manager.operationQueue cancelAllOperations];
AFURLSessionManager also have the operationQueue property if you are more in NSURLSession .
Marcelo fabri
source share