Düzenle

Aracılığıyla paylaş


UIViewController.DecodeRestorableState(NSCoder) Method

Definition

With EncodeRestorableState(NSCoder), allows custom state restoration.

[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

Parameters

coder
NSCoder

The NSCoder that decodes the stored state of the application.

Attributes

Remarks

In applications that supports state restoration, this function and EncodeRestorableState(NSCoder) may be used to supplement standard state encoding and decoding. If EncodeRestorableState(NSCoder) calls base.EncodeRestorableState(coder), this function should call base.DecodeRestorableState(coder).

Applies to

See also

  • <xref:UIKit.UIViewController.EncodeReusableState>