Upravit

Sdílet prostřednictvím


UIViewController.WillMoveToParentViewController(UIViewController) Method

Definition

Called prior to adding or removing this from a container UIViewController.

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

Parameters

parent
UIViewController

The new parent view controller, or null if there won't be a new parent.

This parameter can be null.

Attributes

Remarks

Application developers may override this method in their custom container UIViewControllers. Application developers who implement their own container UIViewControllers must call this method with the parent parameter set to null prior to calling RemoveFromParentViewController().

Applies to

See also