Skip to content

Instantly share code, notes, and snippets.

@JanC
Created August 12, 2015 13:26
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 JanC/6d21f272733b04faf034 to your computer and use it in GitHub Desktop.
Save JanC/6d21f272733b04faf034 to your computer and use it in GitHub Desktop.
NSObject *test;
NSArray *someArray = @[ @1, @2, @3 ]; // sample array
[someArray enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
test = obj;
}];
@JanC
Copy link
Author

JanC commented Aug 12, 2015

Can you tell what is happening in the following code snippet and why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment