Manually firing a timer

suggest change

Swift

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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents