Download ios eBook


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.


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

Related Examples


159 Contributors: 8
Thursday, July 27, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook