Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions MZTimerLabel/MZTimerLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -392,18 +392,23 @@ -(void)updateLabel{

//0.5.1 moved below to the bottom
if(timerEnded) {
// save the timeUserValue because reset will change it
NSTimeInterval endTimeUserValue = timeUserValue;

// call reset before we call delegate
if(_resetTimerAfterFinish){
[self reset];
}

if([_delegate respondsToSelector:@selector(timerLabel:finshedCountDownTimerWithTime:)]){
[_delegate timerLabel:self finshedCountDownTimerWithTime:timeUserValue];
[_delegate timerLabel:self finshedCountDownTimerWithTime:endTimeUserValue];
}

#if NS_BLOCKS_AVAILABLE
if(_endedBlock != nil){
_endedBlock(timeUserValue);
_endedBlock(endTimeUserValue);
}
#endif
if(_resetTimerAfterFinish){
[self reset];
}

}

Expand Down