Protocol

QLPreviewControllerDelegate

The delegate of a preview controller must adopt this protocol.

Declaration

@protocol QLPreviewControllerDelegate

Overview

The delegate of a QLPreviewController object must adopt this protocol to:

  • Provide a zoom animation for Quick Look previews.

  • Specify whether or not your application opens a URL that the user taps in a preview.

  • Respond to the opening or closing of a preview.

The methods described here are optional but expected.

Topics

Responding to Preview Requests

- previewController:frameForPreviewItem:inSourceView:

Called when a Quick Look preview is about to be presented full screen or dismissed, to provide a zoom effect.

- previewController:transitionImageForPreviewItem:contentRect:

Called when the Quick Look preview controller is about to be presented full screen or dismissed; used to provide a smooth transition when zooming.

- previewControllerWillDismiss:

Called before the preview controller is closed.

- previewControllerDidDismiss:

Called after the preview controller is closed.

Responding to User Actions

- previewController:shouldOpenURL:forPreviewItem:

Called by the Quick Look preview controller before trying to open a URL.

Relationships

Inherits From