Initializer

init(target:selector:)

Returns a new display link.

Declaration

init(target: Any, selector sel: Selector)

Parameters

target

An object to be notified when the screen should be updated.

sel

The method to call on the target.

Return Value

A newly constructed display link.

Discussion

The selector to be called on the target must be a method with the following signature:

- (void) selector:(CADisplayLink *)sender;

where sender is the display link returned by this method.

The newly constructed display link retains the target.