How to change the value of an NSMutableArray at a particular index
36,987
Use -insertObject:atIndex:
or replaceObjectAtIndex:withObject:
.
Author by
node ninja
Updated on October 21, 2020Comments
-
node ninja over 3 years
[array objectAtIndex:i]
doesn't work as an L value, so it can't be used to set the object at index i.