A set of methods that define the interface for configuring a previewing view controller on devices that support 3D Touch.
Mac Catalyst 13.0+
The system returns a context object conforming to this protocol when you call a view controller’s registerForPreviewingWithDelegate:sourceView: method. This method registers the view controller to participate in 3D Touch preview (peek) and commit (pop) behaviors.
For apps that run in versions of iOS prior to iOS 8, the UIAlertViewDelegate protocol defines the methods a delegate of a UIAlertView object should implement. The delegate implements the button actions and any other custom behavior. Some of the methods defined in this protocol are optional.
The UIPopoverControllerDelegate protocol defines the methods you can implement for the delegate of a UIPopoverController object. Popover controllers notify their delegate whenever user interactions would cause the dismissal of the popover and, in some cases, give the user a chance to prevent that dismissal.