<!--
{
  "availability" : [
    "iOS: 4.0.0 - 27.0.0",
    "iPadOS: 4.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "tvOS: 9.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIScreen/displayLink(withTarget:selector:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIScreen(im)displayLinkWithTarget:selector:"
  },
  "title" : "displayLink(withTarget:selector:)"
}
-->

# displayLink(withTarget:selector:)

Returns a display link object for the current screen.

```
func displayLink(withTarget target: Any, selector sel: Selector) -> CADisplayLink?
```

## Parameters

`target`

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

`sel`

The method of `target` to call. This selector must have the following signature:

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

## Return Value

A newly constructed display link object.

## Discussion

You use display link objects to synchronize your drawing code to the screen’s refresh rate. 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)