Editar

Compartilhar via


UIViewController.UnregisterForPreviewingWithContext Method

Definition

Stops previewing from handling 3D Touch peek and pop input.

[Foundation.Export("unregisterForPreviewingWithContext:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void UnregisterForPreviewingWithContext (UIKit.IUIViewControllerPreviewing previewing);
abstract member UnregisterForPreviewingWithContext : UIKit.IUIViewControllerPreviewing -> unit
override this.UnregisterForPreviewingWithContext : UIKit.IUIViewControllerPreviewing -> unit

Parameters

Attributes

Remarks

Application developers who want to preserve the option to unregister for 3D Touch peek and pop must store a reference to the IUIViewControllerPreviewing instance that is returned by RegisterForPreviewingWithDelegate(IUIViewControllerPreviewingDelegate, UIView), so that they can later pass it to the UnregisterForPreviewingWithContext(IUIViewControllerPreviewing) method.

Applies to