问题
...continuing question How to set Action for UIButton in UITableViewCell
I have NSTimer
working in singleton. There is only 1 timer, but it contains a Dictionary with several items which contains time values. Every minute timer decrements 1 from time value of all items in dictionary.
The dictionary's structure is:
Key: "1", Value: Array with objects NSString, NSInteger (time value)
TimerCell is a tableViewControllers's cell. UITableViewController
appears in UIPopoverController. So I would like to show dictionary's item's time values in my cell.label...
Edit: way found
I have created new NSTimer
in my UITableViewController
, which starts in viewDidLoad and every 1 second takes new value in singleton's timer and shows it in my cell.label...
If this way is incorrect or have memory leak, please correct me ))
来源:https://stackoverflow.com/questions/15653729/how-to-show-nstimers-time-value-in-uitableviewcells-label