Creates a new timer and schedules it on the current run loop in the default mode.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- 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
The invocation to use when the timer fires. The invocation object maintains a strong reference to its arguments until the timer is invalidated.
true, the timer will repeatedly reschedule itself until invalidated. If
false, the timer will be invalidated after it fires.
NSTimer object, configured according to the specified parameters.
ti seconds have elapsed, the timer fires, invoking