Type Method

blockOperationWithBlock:

Creates and returns an NSBlockOperation object and adds the specified block to it.

Declaration

+ (instancetype)blockOperationWithBlock:(void (^)(void))block;

Parameters

block

The block to add to the new block operation object’s list. The block should take no parameters and have no return value.

Return Value

A new block operation object.

See Also

Managing the Blocks in the Operation

- addExecutionBlock:

Adds the specified block to the receiver’s list of blocks to perform.

executionBlocks

The blocks associated with the receiver.