UIView.RestorationIdentifier UIView.RestorationIdentifier Property

Definition

If not null, indicates that the UIView supports state preservation and restoration.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: Foundation.Export("restorationIdentifier", ObjCRuntime.ArgumentSemantic.Copy)]
[set: Foundation.Export("setRestorationIdentifier:", ObjCRuntime.ArgumentSemantic.Copy)]
public virtual string RestorationIdentifier { get; set; }
member this.RestorationIdentifier : string with get, set

Property Value

The default value is null.

This value can be null.

Remarks

If this method returns the default null value, the UIView will not have its state preserved and restored.

If the UIView does need state preservation and restoration, this method should be overridden to return a T:System.String.

In addition to returning a non-null RestorationIdentifier, so too must the UIViewController for which this UIView is the View and all the ancestor UIViewControllers reachable by the P:UIKit.UIViewController.Parent property.

Applies to