Edit

Share via


UIViewController.AddChildViewController(UIViewController) Method

Definition

Adds a UIViewController as a child.

[Foundation.Export("addChildViewController:")]
public virtual void AddChildViewController(UIKit.UIViewController childController);
abstract member AddChildViewController : UIKit.UIViewController -> unit
override this.AddChildViewController : UIKit.UIViewController -> unit

Parameters

childController
UIViewController

The UIViewController to be added.

Attributes

Remarks

UIViewControllers that are primarily containers of other UIViewControllers should use this method to add child view controllers.

<block subset="none" type="overrides">

Application developers who override this method must call base.AddChildViewController(childController).

</block>

Applies to

See also