StackOverflow 文档 Objective-C Language 教程 NSMutableArray 里 插入元素 插入元素 Created: November-22, 2018 NSMutableArray *myColors; int i; int count; myColors = [NSMutableArray arrayWithObjects: @"Red", @"Green", @"Blue", @"Yellow", nil]; [myColors insertObject: @"Indigo" atIndex: 1]; [myColors insertObject: @"Violet" atIndex: 3]; 删除元素添加元素