0

How can we implement didEndDisplayingCell with UITableviewDiffabledatasource or with using diffable datasource how we know that the cell is dealloc?

What is want is the currently I'm using UItableViewDiffableDaasource for tableview and I want to stop Timer on cell did end display or after cell didi disappear and I want to start timer when cell display so at a time of display cell I will start Timer on AwekfromNib but when can I stop timer for particular cell with using UITableViewDiffabledatasource.

Vvk
  • 4,031
  • 29
  • 51
  • You shouldn't have a timer per cell. Better to have a single timer running in your view controller and update the visible cells each time it fires. Cells are reused so you can't really use `awakeFromNib` anyway. `prepareForReuse` would be more appropriate. – Paulw11 Sep 19 '22 at 10:01

0 Answers0