UIKit.UIViewController.DidMoveToParentViewController Method
Called after this is added or removed from a parent UIKit.UIViewController.

Syntax

[Foundation.Export("didMoveToParentViewController:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual void DidMoveToParentViewController (UIViewController parent)

See Also

UIViewController.Parent
UIViewController.RemoveFromParentViewController

Parameters

parent

The parent view controller to which this view controller was moved, or null if there is no parent.

This parameter can be null.

Remarks

Application developers who implement their own container UIKit.UIViewController must call this method after adding child UIKit.UIViewControllers with UIViewController.AddChildViewController.

This method is called automatically by UIViewController.RemoveFromParentViewController.

Requirements

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