iOS NSTimer

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Parameters

ParameterDetails
intervalThe time, in seconds, to wait beforing firing the timer; or, in repeating timers, the time between firings.
targetThe object to call the selector on
selectorIn Swift, a Selector object specifying the method to call on the target
repeatsIf false, fire the timer only once. If true, fire the timer every interval seconds.

Remarks

An NSTimer allows you to send a message to a target after a specified period of time elapses.



Got any iOS Question?