Just because it’s not entirely clear to me that TeamStar wants a sparse array, I just mentioned that you can assign objects to specific indices at NSMutableArray- as long as the array is already long enough - using -replaceObjectAtIndex:withObject:other methods -replace….
source
share