Qual é a diferença entre tableView.reloadData e tableView.reloadRows? [duplicado]
Esta pergunta já tem uma resposta aqui:
TableView reloadData vs. beginUpdates & endUpdates 3 respostasQual é a diferença entretableView.reloadData()
etableView.reloadRows(at: [IndexPath],with: .none)
?
Eu sei que as células recarregarão tudo depoistableView.reloadData()
Eu tentei o seguinte.
cell.count = 2
indexPath
= [0,0]
e[0,1]
tableView.reloadRows(at: [[0,0] as IndexPath],with: .none)
tableView.reloadRows(at: [[0,1] as IndexPath],with: .none)
No entanto, não resultou como esperado.
O comportamento difere entre recarregar todos ostableView.reloadRows()
com células e recarregando comtableView.reloadData()
?