Instance Method

setDate:

Changes the start time for the timer.

Declaration

- (void)setDate:(NSDate *)date;

Parameters

date

The new starting time for the timer. Specifying the current date or a date in the past causes the timer to count upward from that time. Specifying a date in the future causes the timer to count down to the specified time.

Discussion

This method updates the target value but does not automatically update the timer display. You must call the timer’s start method to begin updating the text it displays. When you do, the timer text is updated based on the time you set using this method.

See Also

Configuring the Timer Attributes

- setTextColor:

Sets the color of the timer’s text.