Edytuj

Udostępnij za pośrednictwem


UIViewController.ViewDidUnload Method

Definition

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

[Foundation.Export("viewDidUnload")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void ViewDidUnload ();
abstract member ViewDidUnload : unit -> unit
override this.ViewDidUnload : unit -> unit
Attributes

Remarks

In iOS 6 and later, 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 all references to the scavenged View have been removed. When this method is called, View is null.

Applies to

See also