标签:
1 #import<Foundation/Foundation.h> 2 int main (int argc,const argv * char[]){ 3 @autoreleasepool{ 4 5 NSArray *arr = @[@"one",@"two",@"three"]; 6 //增强型for循环 7 for(NSString *str in arr){ 8 9 NSLog(@"%@"",str); 10 11 } 12 } 13 return 0; 14 }
运行结果:one
two
three
标签:
原文地址:http://www.cnblogs.com/yyyyyyyyqs/p/4614892.html