objective c – How to change the value of an NSMutableArray at a particular index – Education Career Blog

array objectAtIndex:i doesn’t work as an L value, so it can’t be used to set the object at index i.

,

Use -insertObject:atIndex: or replaceObjectAtIndex:withObject:.

Leave a Comment