Registers a custom object for use with the state restoration system.
- iOS 7.0+
- tvOS 9.0+
The object to be registered with the restoration archive. The object must adopt the
UIStateprotocol. This parameter must not be
The restoration identifier for the object. UIKit uses this parameter to distinguish the object from other objects in the archive. This parameter must not be
You use this method to register objects that you want to save as part of the overall state restoration process. Registering the object makes it available for inclusion in the restoration archive but does not automatically include it. To include the object, refer to it from one of your other interface objects. For example, you might write out a reference to the object from the
encode method of one of your view controllers.