[Solved] How to refer to an array? [closed]

You shouldn’t need an array of points, at least not in this case. A center can only be one point:

self.center = CGPointMake(10,10);

The first integer is the x coordinate and the second is the y.


If I understand your question in the comments, you can do this:

for (int i = 0; i < ?; i++) {
    [items objectAtIndex:i].center = CGPointMake(10*i,10*i);


solved How to refer to an array? [closed]