Skip to content

Instantly share code, notes, and snippets.

@xuzhongzhou
Created February 26, 2014 06:52
Show Gist options
  • Save xuzhongzhou/9224860 to your computer and use it in GitHub Desktop.
Save xuzhongzhou/9224860 to your computer and use it in GitHub Desktop.
快速枚举
- (void)enumerateObjectsUsingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block;
- (void)enumerateKeysAndObjectsUsingBlock:(void (^)(id key, id obj, BOOL *stop))block;
[arrays enumerateObjectsUsingBlock:^(NSString * obj, NSUInteger idx, BOOL *stop) {
}];
[dictionary enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment