您的位置:首页 > 移动开发 > Objective-C

Working with Collections(Chapter 7 of Objective-C Phrasebook)

2011-04-15 09:26 531 查看
1 #import <Foundation/Foundation.h>
2
3 int main (int argc, const char * argv[])
4 {
5
6 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
7
8 NSArray *array= [[NSArray alloc] initWithObjects:@"Ray", @"Summer", nil];
9 NSEnumerator *e = [array objectEnumerator];
for(id obj=[e nextObject]; obj!=nil; obj=[e nextObject])
{
NSLog(@"%@ ", obj);
}

[pool drain];
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: