The interface that restoration classes use to restore preserved objects.


protocol UIObjectRestoration


A restorable object must set its objectRestorationClass property to the class that adopts this protocol. The method in this protocol should be used to return the object if it already exists or create it if needed.


Creating the Restorable Object

static func object(withRestorationIdentifierPath: [String], coder: NSCoder) -> UIStateRestoring?

Asks the receiver to provide the object that corresponds to the specified identifier information.


See Also

Interface Restoration

Restoring Your App’s State

Preserve and restore information related to the user’s current activities.

Preserving Your App's UI Across Launches

Return your app to its previous state after it is terminated by the system.

protocol UIViewControllerRestoration

The methods that objects adopt so that they can act as a "restoration class” for view controllers during state restoration.

protocol UIStateRestoring

Methods for adding objects to your state restoration archives.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software