UIViewController.RemoveFromParentViewController 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.
Removes this UIViewController from its ParentViewControllerUIViewController.
[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>