iphone - NSMutableArray add object from other array at index -


Is there a way addObjectFromArray: atIndex: ?

I have 2 NSMutableArrays Let's say that the first array is array1 and the second is array2 . They are filled with values ​​and I need to add items from array1 to index 3 to array2 Is it possible?

Recover by using the object:

  [array1 objectAtIndex: 3]   

Add items by using:

  [array2 addObject: theObject];   

Adds 3 to array1 to array2 in the following words:

  [array2 addObject: [array 1 object ot index: 3]];    

Comments