UIKit.UIViewController.WillMoveToParentViewController Method
Called prior to adding or removing this from a container UIKit.UIViewController.

Syntax

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

See Also

UIViewController.RemoveFromParentViewController

Parameters

parent

The new parent view controller, or null if there won't be a new parent.

This parameter can be null.

Remarks

Application developers may override this method in their custom container UIKit.UIViewControllers. Application developers who implement their own container UIKit.UIViewControllers must call this method with the parent parameter set to null prior to calling UIViewController.RemoveFromParentViewController.

Requirements

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