I've tried using
NSMutableArray *existingArray = [@[@"1", @"3", @"4"] mutableCopy];
NSArray *newItems = @[@"2", @"2", @"2", @"2"];
[existingArray insertObjects:newItems atIndexes:[NSIndexSet indexSetWithIndex:1]];
Above code ends up crashing because i'm suppose to provide all indexes for all new items.
What i want is to be able to insert newItems at position 1 of existingArray preserving the order of newItems in final array too.
Is there an easy way to provide all those indexes?