向NSMutableArray插入数组的方法

使用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];      

posted on 2013-01-06 16:32  流れ星ーー  阅读(342)  评论(0编辑  收藏  举报

导航