- runloop
- The runloop on which to run.
- mode
- Modes in which the timer will be invoked, one of the various NSString constants in Foundation.NSRunLoop.
You should use the strongly typed version if possible, as it prevents common errors.
The mode parameter will determine when the event is sent. The NSRunLoop.NSDefaultRunLoopMode is not delivered during UI tracking events (like scrolling in a UIScrollbar). For getting those kinds of events use NSRunLoop.UITrackingRunLoopMode. Or use NSRunLoop.NSRunLoopCommonModes which covers both cases.