共用方式為


UIView.DecodeRestorableState(NSCoder) 方法

定義

應用程式開發人員可以覆寫這個方法來支援狀態還原。

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

參數

coder
NSCoder

NSCoder用來解碼狀態的 。

屬性

適用於

另請參閱

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