UIViewController.UnregisterForPreviewingWithContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- previewing
- IUIViewControllerPreviewing
- 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.