Created
September 13, 2011 05:09
-
-
Save alanjrogers/1213164 to your computer and use it in GitHub Desktop.
Enumerate Objects using block with NSString* param
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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