NSEnumerator *enumerator = [langArray objectEnumerator];
id object;
while ((object = [enumerator nextObject]) != nil) {
NSLog(@"langArray=%@", object);
}
[langArray enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOLBOOL *stop) {
NSLog(@"idx=%d, id=%@", idx, obj);
}];
网友评论