Share via


UIApplication.RegisterObjectForStateRestoration 메서드

정의

uistateRestoringObject 상태 복원에 적합한 것으로 등록합니다.

[Foundation.Export("registerObjectForStateRestoration:restorationIdentifier:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void RegisterObjectForStateRestoration (UIKit.IUIStateRestoring uistateRestoringObject, string restorationIdentifier);
static member RegisterObjectForStateRestoration : UIKit.IUIStateRestoring * string -> unit

매개 변수

uistateRestoringObject
IUIStateRestoring

복원 보관 파일에 등록된 개체입니다.

restorationIdentifier
String

개체에 사용되는 복원 식별자입니다.

특성

설명

이 메서드를 호출하면 개체를 저장하고 복원할 수 있지만 보존/복원이 자동으로 트리거되지는 않습니다. 애플리케이션 개발자는 적절한 시간에 개체를 작성해야 합니다(예: EncodeRestorableState(NSCoder)).

적용 대상