UIViewController.RemoveFromParentViewController UIViewController.RemoveFromParentViewController Method

Definition

[Foundation.Export("removeFromParentViewController")]
public virtual void RemoveFromParentViewController ();
abstract member RemoveFromParentViewController : unit -> unit
override this.RemoveFromParentViewController : unit -> unit

Remarks

This function will trigger the removal of this UIViewController from its parent UIViewController (see ParentViewController).

The removal process will set the IsMovingFromParentViewController property to true and call the ViewWillDisappear(Boolean), ViewDidDisappear(Boolean), and DidMoveToParentViewController(UIViewController) methods.

Applies to

See also