Skip to content

Instantly share code, notes, and snippets.

Created Jul 26, 2013
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");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment