langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
5
Task/Loops-Foreach/Objective-C/loops-foreach-1.m
Normal file
5
Task/Loops-Foreach/Objective-C/loops-foreach-1.m
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
NSArray *collect;
|
||||
//...
|
||||
for(Type i in collect){
|
||||
NSLog(@"%@", i);
|
||||
}
|
||||
7
Task/Loops-Foreach/Objective-C/loops-foreach-2.m
Normal file
7
Task/Loops-Foreach/Objective-C/loops-foreach-2.m
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
NSArray *collect;
|
||||
//...
|
||||
NSEnumerator *enm = [collect objectEnumerator];
|
||||
id i;
|
||||
while( (i = [enm nextObject]) ) {
|
||||
// do something with object i
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue