I would like to create some simple countdown timers in a UITableview. I noticed that the World Clock application has an animated clock in each of them. What is the best way to start NSTimer to update each row of a table? Can one timer start, which updates all cells, or should I have my own view subclass with a built-in timer that is added to each row?
I'm just trying to find the right course of action.
One timer is enough. When it works, ask the table view for the visible cells and update them one by one. You can also just call reloadDatawhen the timer fires, but depending on how you draw your cells, you can do more work than necessary and you cannot use animation.
reloadData
, . NSTimer - - . , 1- NSTimer . , , , , , /, .