NSArray
cannot contain primitives, you must add objects to it.
Objects that correspond to integers are NSNumber
s. You can make them using the old syntax, like this,
[numbers addObject:[NSNumber numberWithInt:counter]];
or using the new syntax, like this:
[numbers addObject:@(counter)];
It goes without saying that before adding objects to the array you need to create it:
numbers = [NSMutableArray array];