Edit

Share via


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

Property Value

The default value is null.

This value can be null.

Attributes

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