Fast Enumeration Array


/ Published in: iPhone
Save to your folder(s)



Copy this code and paste it in your HTML
  1. NSArray *array = [NSArray arrayWithObjects:
  2. @"One", @"Two", @"Three", @"Four", nil];
  3. for (NSString *element in array) {
  4. NSLog(@"element: %@", element);
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.