iOS二维数组的删除

tableView中多行多列中的数据删除。

// 正确代码
NSMutableArray * tempArr = [[NSMutableArray alloc] init];
tempArr = [self.dataArr[section] mutableCopy];
[tempArr removeObjectAtIndex:row];
[self.dataArr replaceObjectAtIndex:section withObject:tempArr];

你可能感兴趣的:(iOS二维数组的删除)