操作のキューを取得し、次のように実行します。
[sharedClient setAsJsonClient];
[sharedClient enqueueBatchOfHTTPRequestOperations:operations
progressBlock:^(NSUInteger numberOfFinishedOperations, NSUInteger totalNumberOfOperations) {
//numberOfFinishedOperations = 1 before 1st operation complete block executes
} completionBlock:^(NSArray *operations) {
block(news, games);
}];
すべての操作には、独自の完了ブロックがあります。通常、最後の操作完了ブロックの前に実行されるため、奇妙なことが起こっていblock(news, games);
ますが、通信速度に依存するなど、常にではありません。
助けてください、私はここで立ち往生しています。