The first time the timer is set, it's a correct time. Any subsequent setTimers() will add about 4.5 seconds. I have 2 MZTimeLabels, one being used as a stopwatch for overall time using storyboard. 1 is used as a Countdown Timer Label. Only the countdownTimer has the delegate set.
My work around it was to create a new MZTimerLabel this:
func setTimer() {
countdownTimer = MZTimerLabel(label: self.workoutCountdownTimerLabel, andTimerType: MZTimerLabelTypeTimer)
countdownTimer.timeFormat = "m:ss"
countdownTimer.delegate = self
countdownTimer.setCountDownTime(timerDuration)
countdownTimer.start()
}
Output from Xcode:
The first time the timer is set, it's a correct time. Any subsequent setTimers() will add about 4.5 seconds. I have 2 MZTimeLabels, one being used as a stopwatch for overall time using storyboard. 1 is used as a Countdown Timer Label. Only the countdownTimer has the delegate set.
UPDATE:
Using countdownTimer.reset() fixes the problem.