关于下面代码段的说法错误的是 func tableView (_ tableView: UITableView, moveRowAt sourceIn

关于下面代码段的说法错误的是 func tableView (_ tableView: UITableView, moveRowAt sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath ) { let fromRow=sourceIndexPath.row let toRow=destinationIndexPath.row let obj=students[fromRow] students.remove(at: fromRow) students.insert(obj, at: toRow) } A、表视图在任何状态下都可以移动单元格 B、sourceIndexPath表示移动的来源行 C、destinationIndexPath表示移动的目标行 D、数组insert方法表示在指定下标元素前插入新元素

时间:2024-01-16 14:09:54

相似题目