Skip to content

Instantly share code, notes, and snippets.

@khanlou khanlou/gist:6091415
Created Jul 26, 2013

Embed
What would you like to do?
Blocks are created on the stack frame that they are on
void (^block)();
if (condition) {
block = ^{
NSLog(@"some code");
};
} else {
block = ^{
NSLog(@"other code");
};
}
block();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.