Is it possible to specify a method block parameter in Objective-C without using a typedef? It must be, like function pointers, but I can\'t hit on the winning syntax witho
Even more clear !
[self sumOfX:5 withY:6 willGiveYou:^(NSInteger sum) { NSLog(@"Sum would be %d", sum); }]; - (void) sumOfX:(NSInteger)x withY:(NSInteger)y willGiveYou:(void (^) (NSInteger sum)) handler { handler((x + y)); }