I am wondering what is the proper way of showing countdown in fairly complex UITableViewCells, in each cell one countdown with different time.
I could have NSTimer for each cell separately but then the cells wouldnt update at same time. I could have one NSTimer for all cells but calling reloadData on uitableview is fairly expensive to do every second, isnt it?
Obviously the needs to be updated only in visible cells.
Any ideas, best practice, know how on this matter?
Some thoughts on how I would implement this:
update
method in that class. This method updates the label.TableViewController
classindexPath
. UITableView.CellForRowAtIndexPath
returns nil
for cells which aren't visible.update
method for each of these visible cells.