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.
- iOS 8.0+
- tvOS 9.0+
A restorable object must set its
objectRestorationClass property to the class that adopts this protocol.