How do I reset a countdown timer when it reaches 0? (Xcode 4)
Posted
by
Zac Prunty
on Stack Overflow
See other posts from Stack Overflow
or by Zac Prunty
Published on 2011-11-21T07:13:34Z
Indexed on
2011/11/21
9:50 UTC
Read the original article
Hit count: 244
first question and I have researched the heck out of this and can't seem to find any answers.
I would like to implement a countdown timer in my app that starts at 30 seconds and resets when it hits 0. It will count back by 1 second intervals. I have played around with the resources that Apple provides and I can't seem to implement the NStimer to do as I just explained. Are there any suggestions on how I could code this? I would eventually like to link this to a button that will start the timer when it is pressed. I appreciate any advice on this topic!
© Stack Overflow or respective owner