UIKit.UIViewController.ViewWillUnload Method
In iOS 6 and later, this method is never called. In prior versions it was called prior to the controller’s view was released from memory.

Syntax

[Foundation.Export("viewWillUnload")]
[ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_6_0, Introduced=ObjCRuntime.Platform.iOS_5_0)]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual void ViewWillUnload ()

See Also

UIViewController.ViewDidUnload

Remarks

In iOS 6 and later, UIKit.UIView's that are referenced by live objects are not scavenged during low-memory situations. In other words, in iOS 6 and later, this method is never called. In previous versions, application developers may override this method to ensure that the state of the view can be restored when it is re-initialized.

Requirements

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