使用NSMutableArray 的- (void)insertObjects:(NSArray *)objects atIndexes:(NSIndexSet *)indexes; 方法
举例说明
NSMutableArray *array=[NSArray arrayWithObjects:@"1",@"2",nil];
NSIndexSet * indexSet=[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1,array.count)];//创建 NSIndexSet对象的方法
[ObjectArray insertObjects:array atIndexes:indexSet];
转载于:https://www.cnblogs.com/liuxingzi/archive/2013/01/06/3404308.html