Jen Sipila
2 min readFeb 23, 2017

--

Hi Yves, Sorry for the very delayed my response! And thank you for reading and following my tutorial! You may have found the response already, but I hope this helps. I set up a button that will show the timer count down as the buttons title. I then used the setTitle method like this:

inside the body of the updateTimer method.

The complete updateTimer method would look like this:(I kept the code for updating the original label too).

This worked for me. The title was not lagging or switching back to the default label at each timer count.

The only possible draw back is that the title does appear to flash or momentarily disappear and reappear between each count, and this is probably due to redrawing. So if this flashing does not work for your app, there may be a better solution than this one.

If you solved it another way, I’d love to know how you did it.

Thanks again for reading and I hope this helps!!

--

--

Jen Sipila
Jen Sipila

Written by Jen Sipila

iOS Mobile Engineer & Astronomy enthusiast

No responses yet