【发布时间】:2014-08-24 12:47:53
【问题描述】:
从 AFNetworking 教程中,我使用以下代码进行分段上传
NSArray *operations = [AFURLConnectionOperation batchOfRequestOperations:mutableOperations progressBlock:^(NSUInteger numberOfFinishedOperations, NSUInteger totalNumberOfOperations) {
NSLog(@"%lu of %lu complete", numberOfFinishedOperations, totalNumberOfOperations);
} completionBlock:^(NSArray *operations)
{
NSLog(@"All operations in batch complete");
} ];
[[NSOperationQueue mainQueue] addOperations:operations waitUntilFinished:NO];
但是我怎么知道上传是否失败。?有没有故障块?
【问题讨论】:
标签: ios afnetworking-2