Modifica

Condividi tramite


UIViewController.DidMoveToParentViewController(UIViewController) Method

Definition

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

[Foundation.Export("didMoveToParentViewController:")]
public virtual void DidMoveToParentViewController (UIKit.UIViewController parent);
abstract member DidMoveToParentViewController : UIKit.UIViewController -> unit
override this.DidMoveToParentViewController : UIKit.UIViewController -> unit

Parameters

parent
UIViewController

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

This parameter can be null.

Attributes

Remarks

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