NSTimer
suggest changeParameters
These are the arguments of scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:.
| Parameter | Details |
|---|---|
interval |
The time, in seconds, to wait before firing the timer. For a repeating timer, the time between firings. |
target |
The object to call the selector on. |
selector |
The method to call on the target. |
userInfo |
An object passed to the timer callback, or nil. |
repeats |
If false, fire the timer only once. If true, fire the timer every interval seconds. |
The timer keeps a strong reference to target until it is invalidated. A repeating timer can keep that object alive.
Remarks
An NSTimer allows you to send a message to a target after a specified period of time elapses.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents