Reputation: 1305
I have a timer on multiple cell which updates every second. how can i implement NSTimer scheduledTimerWithTimeInterval
in each cell. Is it possible to use single Timer which keeps track of the time of each cell. How can i implement this?.
Upvotes: 0
Views: 1064
Reputation: 169
Since the table view cells are made up of UI elements, I don't believe you can have dynamic timers as such. However, you could reload the table view every second, and you could set the timer to the appropriate value in each cell when reconfiguring the cells (which will happen after a call to [tableView reloadData]).
Upvotes: 2