How to get completion block of NSOperationQueue [duplicate]
问题 This question already has answers here : Get notification when NSOperationQueue finishes all tasks (13 answers) Closed 4 years ago . How to get completion block of NSOperationQueue, here I want to spin activity indicator from start to end of all operation. NSOperationQueue *operationQueue = [[NSOperationQueue alloc] init]; // Set the max number of concurrent operations (threads) [operationQueue setMaxConcurrentOperationCount:3]; [operationQueue addOperations:@[operation, operation1,