关于下面代码段的说法错误的是()。 - (void) tableV...
关于下面代码段的说法错误的是()。 - (void) tableView: (UITableView *) tableView commitEditingStyle: (UITableViewCellEditingStyle) editingStyle forRowAtIndexPath:(NSIndexPath *) indexPath { switch (editingStyle ) { case UITableViewCellEditingStyleDelete: { [allStudentsName removeObjectAtIndex:indexPath.row]; [self.studentTableView reloadData]; break; } case UITableViewCellEditingStyleInsert: { [allStudentsName insertObject: @"newStudent" atIndex:indexPath.row+1]; [self.studentTableView reloadData]; break; } } }
A、commitEditingStyle是表视图的确认编辑操作对应的代理方法
B、editingStyle获取当前表视图的编辑状态
C、UITableViewCellEditingStyleDelete表示删除状态点击删除按钮对应的操作
D、insertObject在当前行的前面插入"newStudent"对应的新行