I have a simple UITableView
containing a few rows. Every row contain a countdown timer represented by UITextLabel
. When row is selected, countdown starts. Countdown fire date is set by localNotification
. Time to fire date is displayed in UITextLabel
.
Refreshing table starts in viewWillApper
method with the line below:
[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(refreshTable) userInfo:nil repeats:YES];
refreshTable
method contain one line:
[tableView reloadData]
Everything is working as expected, but when I start to scroll the tableView
(without releasing the finger) countdown timer is not updated.
I've set up a log inside refreshTable
method to see whether this method is called when I scroll the table. The result was negative. Somehow refreshTable
method is not called when I scroll tableView
.
Can anybody tell me how to fix this issue?
I've checked default Clock App (by apple). In the first tab (world clock) is represented by table view. Inside every row there is a clock with red hand. While scrolling the table the hand is updating which means that updating table view while scrolling is possible...somehow
Thanks in advance