<!--
{
  "availability" : [
    "iOS: 3.1.0 -",
    "iPadOS: 3.1.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CADisplayLink/init(target:selector:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CADisplayLink(cm)displayLinkWithTarget:selector:"
  },
  "title" : "init(target:selector:)"
}
-->

# init(target:selector:)

Creates a display link for a target that calls its selector.

```
init(target: Any, selector sel: Selector)
```

## Parameters

`target`

An object in your app that you want the system to notify each time it updates a display.

`sel`

A selector instance that represents a method for `target`.

## Return Value

A new [`CADisplayLink`](/documentation/QuartzCore/CADisplayLink) object.

## Discussion

The selector on the target must be a method with the following signature, where sender is the display link returned by this method.

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

The newly constructed display link retains the target.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)