UIKit.UIViewController.AddChildViewController Method
Adds a UIKit.UIViewController as a child.

Syntax

[Foundation.Export("addChildViewController:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual void AddChildViewController (UIViewController childController)

See Also

:UIKit.UIViewController.RemoveFromParentViewController
UIViewController.ChildViewControllers

Parameters

childController
The UIKit.UIViewController to be added.

Remarks

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

Note to Inheritors

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

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0