I am creating a very simple game where a I need to use the amount of time left before the timer fires in seconds so that I am able to convert it into a double. I have thought about using .fireDate but I don't think there is an easy way to convert it to a double. Is there a simpler way?
Asked
Active
Viewed 408 times
1 Answers
2
timer.fireDate.timeIntervalSinceNow
should return the number of seconds remaining until the timer fires as an NSTimeInterval
which is a Double

Casey Fleser
- 5,707
- 1
- 32
- 43
-
Thank you it works! – Stevie Thiel May 26 '16 at 04:14