UIViewController.WillMoveToParentViewController(UIViewController) 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.
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().