NSInvocation-Block is a NSInvocation category to create NSInvocation with block
Given
void (^myBlock)(id, NSString*, NSArray*) = ^(id obj1, NSString* name, NSArray* array) {
NSLog(@"%@",@"Hey!");
};
We can create an invocation:
NSInvocation* inv = [NSInvocation invocationWithBlock:myBlock];
Or with arguments:
NSInvocation* inv = [NSInvocation invocationWithBlockAndArguments:myBlock,[NSObject new],@"Hello",@[@1,@2,@3]];
- Arguments of struct, union or C-style array type are not supported yet.