im using nsmutabltearray in my code base and i want to remove an element within a specified index. i know that element will be shifted automatically.
but i want to stop this . elements shouldn’t be shifted within the indexes.
ex – : arraylist in java
is thr any specied list tyoe in objc to do this
Thank you
I don’t think this is possible with the default NS(Mutable)Array. Instead of removing, you could put
[NSNull null]objects in there, but methods likecountandobjectAtIndexwould still return the same values, so that may not be of much help either.