Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:@"some object", @"key", nil];
- if ( [dict respondsToSelector:@selector(enumerateKeysAndObjectsUsingBlock:)] ) {
- [dict enumerateKeysAndObjectsUsingBlock:^(id, id, BOOL *) {
- // dealing with the enumeration of the dict.
- }];
- [dict release];
- }
Add Comment
Please, Sign In to add comment