[Solved] Adding an element to the end of an NSMutableArray [closed]


Instead of objectAtIndex, you can just addObject:

According to the developer notes:

addObject:

Inserts a given object at the end of the array.

- (void)addObject:(id)anObject

solved Adding an element to the end of an NSMutableArray [closed]