Protocol

UIObjectRestoration

The interface that restoration classes use to restore preserved objects.

Overview

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.

Topics

Creating the Restorable Object

static func object(withRestorationIdentifierPath: [String], coder: NSCoder)

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

Required.

See Also

Interface Restoration

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.