How can you make this work?
numbers = [[NSMutableArray alloc] initWithObjects: ({int x = 0; while (x <= 60 ) { return x; x++; } })];
Thanks :)
1
|
How can you make this work?
Thanks :)
|
||||||
|
5
|
|
||
|
2
|
|
||||||||
|
2
|
First, an NSArray can only hold objects, not primitives. You can add the objects within a for loop like so.
|
||
|