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]; 刪除元素新增元素