Manually firing a timer
suggest changeSwift
timer.fire()
Objective-C
[timer fire];
Calling the fire
method causes an NSTimer to perform the task it would have usually performed on a schedule.
In a non-repeating timer, this will automatically invalidate the timer. That is, calling fire
before the time interval is up will result in only one invocation.
In a repeating timer, this will simply invoke the action without interrupting the usual schedule.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents