Protocol

UIViewControllerPreviewingDelegate

Implement the methods of this protocol to respond, with a preview view controller and a commit view controller, to the user pressing a view object on the screen of a device that supports 3D Touch.

Overview

To learn about 3D Touch, read Adopting 3D Touch on iPhone.

Symbols

Providing Preview and Commit Views for 3D Touch

func previewingContext(UIViewControllerPreviewing, viewControllerForLocation: CGPoint)
Required.

Called when the user has pressed a source view in a previewing view controller, thereby obtaining a surrounding blur to indicate that a preview (peek) is available.

func previewingContext(UIViewControllerPreviewing, commit: UIViewController)
Required.

Called to let you prepare the presentation of a commit (pop) view from your commit view controller.

Relationships

Inherits From