Freigeben über


UIView.EncodeRestorableState(NSCoder) Methode

Definition

Anwendungsentwickler können diese Methode überschreiben, um den zustand zu speichern, der der Ansicht zugeordnet ist.

[Foundation.Export("encodeRestorableStateWithCoder:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void EncodeRestorableState (Foundation.NSCoder coder);
abstract member EncodeRestorableState : Foundation.NSCoder -> unit
override this.EncodeRestorableState : Foundation.NSCoder -> unit

Parameter

coder
NSCoder

Der NSCoder , der den Zustand codiert.

Attribute

Gilt für:

Weitere Informationen

  • <xref:UIKit.UIView.DecodeRestorableState>
  • <xref:UIKit.UIApplicationDelegate.ShouldRestoreApplicationState>
  • <xref:UIKit.UIApplicationDelegate.ShouldSaveApplicationState>