편집

다음을 통해 공유


UIViewController.RemoveFromParentViewController Method

Definition

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

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

  • IsMovingFromParentViewController
  • <xref:UIKit.UIViewController.ViewWillDisappear>
  • <xref:UIKit.UIViewController.ViewDidDisappear>
  • <xref:UIKit.UIViewController.DidMoveToParentViewController>