Quantcast
Channel: User trojanfoe - Stack Overflow
Viewing all articles
Browse latest Browse all 182

Answer by trojanfoe for Objective-C. Block that returns a string and printing it out

$
0
0

You are not actually calling the block, which you do with ():

NSString* (^greetings)(void) = ^{    return @"Hello Everyone";};NSLog(@"%@", greetings());                      ^^

Viewing all articles
Browse latest Browse all 182

Trending Articles