问题描述
- afnetworking 回调问题
-
AFHTTPRequestOperation *fileUploadOp = [[AFHTTPRequestOperation alloc]initWithRequest:fileUpRequest];[fileUploadOp setUploadProgressBlock:progressBlock];
[fileUploadOp setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
}];
[self.manager.operationQueue addOperation:fileUploadOp];
我没请求过后都会等待很长一段时间才会调用setCompletionBlockWithSuccess这个回调,为什么呢?服务器没有问题,因为安卓都是调用的同样接口,但它是秒回的很快,就ios回调要很久?
时间: 2024-12-01 11:36:51