prepare for reuse UITableViewCell

I need to reset all content of the current tableviewcell in cellAtRow. Is there any global attribute which i can set and thus it forces an app to redraw every thing

i have used prepareforreuse but it only reset the content mentioned in the overriden method.
Any direct function/attribute ?

Use reloadRows(at:with:) to make the table view call your tableView(_:cellForRowAt:)


let indexPath = IndexPath(row: index, section: 0)
tableView.reloadRows(at: [indexPath], with: .none)

In objective c:


If you have a pointer to the tableView (e.g. myTableView)

[myTableView reloadData];

If the class is the tableview:

[self.tableView reloadData];

If this is happening in a method that hands you areference to the tableView then:

[tableView reloadData];

prepare for reuse UITableViewCell
 
 
Q