Skip to content

Instantly share code, notes, and snippets.

@chiiph
Created December 25, 2012 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chiiph/4374872 to your computer and use it in GitHub Desktop.
Save chiiph/4374872 to your computer and use it in GitHub Desktop.
__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