Skip to content

Instantly share code, notes, and snippets.

@chiiph
Created December 25, 2012 19:05
Embed
What would you like to do?
__block int variable = 1;
int anotherVariable = 2;
void (block^)() = ^{
variable++; // actually modifying variable
anotherVariable++; // modifying a copy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment