UIView.EncodeRestorableState(NSCoder) 方法

定义

应用程序开发人员可以重写此方法以存储与视图关联的状态。

[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

参数

coder
NSCoder

NSCoder要对状态进行编码的 。

属性

适用于

另请参阅

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