You are not actually calling the block, which you do with ()
:
NSString* (^greetings)(void) = ^{ return @"Hello Everyone";};NSLog(@"%@", greetings()); ^^
You are not actually calling the block, which you do with ()
:
NSString* (^greetings)(void) = ^{ return @"Hello Everyone";};NSLog(@"%@", greetings()); ^^