UIViewController.DidMoveToParentViewController(UIViewController) UIViewController.DidMoveToParentViewController(UIViewController) Method


Called after this is added or removed from a parent UIViewController.

public virtual void DidMoveToParentViewController (UIKit.UIViewController parent);
abstract member DidMoveToParentViewController : UIKit.UIViewController -> unit
override this.DidMoveToParentViewController : UIKit.UIViewController -> unit


UIViewController UIViewController

The parent view controller to which this view controller was moved, or null if there is no parent.

This parameter can be null.


Application developers who implement their own container UIViewController must call this method after adding child UIViewControllers with AddChildViewController(UIViewController).

This method is called automatically by RemoveFromParentViewController().

Applies to

See also