UIKit.UIViewController.ViewWillDisappear Method

This method is called prior to the removal of the UIKit.UIViewthat is this UIKit.UIViewController’s UIViewController.View from the display UIKit.UIView hierarchy.

Application developers may override this method to configure animations, resign first responder status (see UIResponder.ResignFirstResponder), or perform other tasks.

Application developers who override this method must call base.ViewWillDisappear() in their overridden method.

Syntax

[Foundation.Export("viewWillDisappear:")]
public virtual void ViewWillDisappear (bool animated)

Parameters

animated
If the appearance will be animated.

Remarks

Requirements

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