Created
February 26, 2014 06:52
-
-
Save xuzhongzhou/9224860 to your computer and use it in GitHub Desktop.
快速枚举
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
- (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