创建:
NSMutableArray *array = [NSMutableArray array];
NSMutableArray *array = [NSMutableArray arrayWithArray:传一个数组];
添加对象:
[array addObject:];//插入到尾部
[array addObjects:];
[array insertObject: atIndex:];//在指定位置插入
删除对象:
[array removeObject:];
[array removeObjectAtIndex:]; |
|