最新回答 / 无谓艰苦
#import <Foundation/Foundation.h>#import "PeopleAll.h"int main(int argc, const char * argv[]) { @autoreleasepool { PeopleAll *people1 = [[PeopleAll alloc] init]; PeopleAll *people2 = [[PeopleAll alloc] init]; PeopleAll *peopl...
2015-12-03
最新回答 / 慕仰0613825
//迭代器 NSEnumerator *enumerator = [array1 objectEnumerator]; id obj = nil; while(obj = [enumerator nextObject]){ NSLog(@"obj=%@",obj); }
2015-07-31
最赞回答 / hello_p
//枚举器 NSEnumerator *enumerator; enumerator = [array1 objectEnumerator]; id thing; while (thing = [enumerator nextObject]) { NSLog(@"%@",thing); }
2015-06-17