If I have an NSMutableArray with 10 objects
I run this line of code
[tempArray removeObjectAtIndex:0]
then
[tempArray count] should return 9
but the whole array moves up
The object in index 1 goes to index 0
The object in index 2 goes to index 1
...
The object in index 9 moves to index 8
or index 0 = nil?
source
share