views:

50

answers:

1

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

+6  A: 

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

Costique
Dave, thanks for formatting!
Costique