You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible / how do we get a reference to the countdown label object from the delegate methods?
In the example it works easily because it is based on a static Countdown Label named "countdownLabel6" , but I am implementing the countdown in a tableview.
I wish to update/manipulate the CountdownLabel within the tableview cells when they are counting down, but am stuck when trying to think of how to reference back the respective Countdown Label for that delegate call.
ie. tableview list of countdown labels start counting down, and I want the text to change to "Time's Up!" when the respective countdowns are complete.
Can anyone help?
The text was updated successfully, but these errors were encountered:
Oh yeah, it's actually very simple, just initialise all the countdown code inside the custom table cell's model. That way, within the cell's model, your countdown code has access to all the cell's properties without needing to fumbling with finding out which cell it is on the tableview.
Is it possible / how do we get a reference to the countdown label object from the delegate methods?
In the example it works easily because it is based on a static Countdown Label named "countdownLabel6" , but I am implementing the countdown in a tableview.
I wish to update/manipulate the CountdownLabel within the tableview cells when they are counting down, but am stuck when trying to think of how to reference back the respective Countdown Label for that delegate call.
ie. tableview list of countdown labels start counting down, and I want the text to change to "Time's Up!" when the respective countdowns are complete.
Can anyone help?
The text was updated successfully, but these errors were encountered: