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

The UIViewController to be added.

Remarks

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

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

Applies to

See also