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.