mineschan / MZTimerLabel

A handy class for iOS to use UILabel as a countdown timer or stopwatch just like in Apple Clock App.
MIT License
1.57k stars 247 forks source link

CountDown acts like a StopWatch #90

Closed cmouline closed 6 years ago

cmouline commented 6 years ago

Here's my code : timer.setCountDownTime(180) timer.start() timer.timeFormat = "mm:ss"

What I get is a label starting at 03:00 but instead of decreasing, the time increase (03:01, 03:02 and so on). Did I miss something or is this, as I suspect, not the correct behavior ?

mineschan commented 6 years ago

Set the right type when you init the instance

cmouline commented 6 years ago

Great ! Works like a charm, I was initializing the label from storyboard that's why I didn't see that parameter.