Sunday, 15 September 2013

obj-c array handling - How to add first object?

obj-c array handling - How to add first object?

I am struggling with a noob thing. I have this loop through an initialized
array:
for (int i = 0; i < array.count; i++) {
[array addSomeObject...];
}
How do I add the first object? The loop is not executed as array.count is
0. I probably deserve to be voted down for this. Just tell me how to deal
with it :! Many thanks!

No comments:

Post a Comment