UIViewController.ViewWillUnload 메서드

정의

iOS 6 이상에서는 이 메서드가 호출되지 않습니다. 이전 버전에서는 컨트롤러의 뷰가 메모리에서 해제되기 전에 호출되었습니다.

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

설명

iOS 6 이상 UIView에서는 라이브 개체에서 참조하는 의 메모리 부족 상황에서는 청소되지 않습니다. 즉, iOS 6 이상에서는 이 메서드가 호출되지 않습니다. 이전 버전에서 애플리케이션 개발자는 다시 초기화될 때 뷰의 상태를 복원할 수 있도록 이 메서드를 재정의할 수 있습니다.

적용 대상

추가 정보