Yes maybe
the first: -
type def in your .h file, the type of block you are going to use helps.
typedef void (^blockForYou)(NSArray*);//typedef helps in recognizing and better understanding blocks and easy to use as well
now create a block type property, copy it.
@property(nonatomic,copy)blockForYou yourBlock;
Now in the block copy the .m file to your property.
self.yourBlock=^(NSArray* arrayData){
};
now from another function just call your block.
self.yourBlock(<pass your array here>);
hope this helps.
source
share