Hi I have two arrays one has 200 + objects ( never changes) and another which is an array of integers ( as NSNumber objects) what is the easiest way to create a third array which will be an array of all objects from array 1 that are included in the array of indexes from array 2?
Share
One option would be to convert the array of indexes to an
NSIndexSetand then useobjectsAtIndexes:Result:
A, C, GOf course, if you can, it would be better to directly use an index set, instead of an array.
Or you could just use a simple loop.