0

how can I go to a cell without an indexpath to change the content

That makes sense:

let cell = tableView.cellForRow(at: indexPath)

But, uh, every cell has a restorationIdentifier. Can I change the contents of a cell using restorationIdentifier?

Sergo
  • 111
  • 2
  • 10
  • The way to do this is to update your model, and then call `tableView.reloadData()`. – koen Feb 25 '20 at 18:04
  • Koen, I need to update one specific cell without reloading the table. I'll use: `tableView.beginUpdates() tableView.endUpdates()` But I don't need to call this cell with "indexpath," but with "restorationIdentifier" – Sergo Feb 25 '20 at 18:23
  • Cells are reused, so any tag or id you add to identify a cell could potentially be lost. – koen Feb 25 '20 at 20:20

0 Answers0