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