共用方式為


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>