Guest User

Untitled

a guest
Jun 24th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:@"some object", @"key", nil];
  2.  
  3. if ( [dict respondsToSelector:@selector(enumerateKeysAndObjectsUsingBlock:)] ) {
  4. [dict enumerateKeysAndObjectsUsingBlock:^(id, id, BOOL *) {
  5. // dealing with the enumeration of the dict.
  6. }];
  7. [dict release];
  8. }
Add Comment
Please, Sign In to add comment