maytableView有一些奇怪的事情我有在我的代表中我有vareditingIndexPath:IndexPath?functableView(_tableView:UITableView,numberOfRowsInSectionsection:Int)->Int{ifleteditingIndexPath=editingIndexPath{returndatasource.count+1}else{returndatasource.count}}在我的didSelect中有functableView(_tableView:UITableView,didSelectRowAtin