Hi all,
is there a simple way to re-index your nsmutablearray's ?
I made a tableview and when I tap something it will go through a whole procedure and after, that object will be removed from the array, and the table needs to be reloaded IF there are any objects left.
But.. when reloading, the indexes of the objects has changed, so lets say I deleted objectAtIndex: 3 and my table will still have 4 objects left and I'm going to remove the 3rd object again, it will crash out.
Is there some simple command to re-index my array?
Instead of rebuilding the whole array again ?
Thanks!
is there a simple way to re-index your nsmutablearray's ?
I made a tableview and when I tap something it will go through a whole procedure and after, that object will be removed from the array, and the table needs to be reloaded IF there are any objects left.
But.. when reloading, the indexes of the objects has changed, so lets say I deleted objectAtIndex: 3 and my table will still have 4 objects left and I'm going to remove the 3rd object again, it will crash out.
Is there some simple command to re-index my array?
Instead of rebuilding the whole array again ?
Thanks!
Last edited: