Creates a timer and schedules it on the current run loop in the default mode.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The number of seconds between firings of the timer. If
tiis less than or equal to
0, this method chooses the nonnegative value of 0.1 milliseconds instead.
The object to which to send the message specified by
awhen the timer fires. The timer maintains a strong reference to
targetuntil it (the timer) is invalidated.
The message to send to
targetwhen the timer fires.
The selector should have the following signature:
timer(including a colon to indicate that the method takes an argument). The timer passes itself as the argument, thus the method would adopt the following pattern:
The user info for the timer. The timer maintains a strong reference to this object until it (the timer) is invalidated. This parameter may be
YES, the timer will repeatedly reschedule itself until invalidated. If
NO, the timer will be invalidated after it fires.
NSTimer object, configured according to the specified parameters.
ti seconds have elapsed, the timer fires, sending the message