As the question states, say I have an NSMutableArray containing 4 rows. I then delete row at position 2 by doing [array removeObjectAtIndex: 2] and I want all subsequent rows to be repositioned so that there is no empty slot in the NSMutableArray. (row 3 to become row 2, and row 4 to become row 3)
Is there a way to quickly do that?
This happens automatically when you call removeObjectAtIndex. From the class reference documentation: