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.

Applies to

See also