UIViewController.DidMoveToParentViewController(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 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
- <xref:UIKit.UIViewController.Parent>
- RemoveFromParentViewController()