Is there a way to cancel all network request (the request started by another method) before I do a network request with AFNetworking I tried like below but not work:
Both the other two answers are right. Don't Create new AFHTTPRequestOperationManager instance
@interface OperateCustomerView () {
AFHTTPRequestOperationManager *manager;// = [AFHTTPRequestOperationManager manager];
}
- (void)viewDidLoad {
[super viewDidLoad];
manager = [AFHTTPRequestOperationManager manager];