The UIObjectRestoration protocol should be adopted by classes that act as "restoration classes” for objects during the state restoration process. The method in this protocol should be used to return the object if it already exists or create it if needed.


A restorable object must set its objectRestorationClass property to the class that adopts this protocol.


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.