Skip to content

Instantly share code, notes, and snippets.

@alanjrogers
Created September 13, 2011 05:09
Show Gist options
  • Save alanjrogers/1213164 to your computer and use it in GitHub Desktop.
Save alanjrogers/1213164 to your computer and use it in GitHub Desktop.
Enumerate Objects using block with NSString* param
NSArray* stringArray = [NSArray arrayWithObjects:@"One", @"Two", @"Three", @"Four", nil];
[stringArray enumerateObjectsUsingBlock:^(NSString* obj, NSUInteger idx, BOOL *stop) {
NSLog(@"%@", obj);
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment