Instance Property

restorationClass

The class responsible for recreating this view controller when restoring the app'€™s state.

Declaration

@property(nonatomic, readwrite, assign) Class<UIViewControllerRestoration> restorationClass;

Discussion

If a view controller has an associated restoration class, the viewControllerWithRestorationIdentifierPath:coder: method of that class is called during state restoration. That method is responsible for returning the view controller object that matches the indicated view controller. If you do not specify a restoration class for your view controller, the state restoration engine asks your app delegate to provide the view controller object instead.

The restoration class must conform to the UIViewControllerRestoration protocol.

See Also

Managing State Restoration

Restoring Your App’s State

Preserve and restore information related to the user’s current activities.

restorationIdentifier

The identifier that determines whether the view controller supports state restoration.

- encodeRestorableStateWithCoder:

Encodes state-related information for the view controller.

- decodeRestorableStateWithCoder:

Decodes and restores state-related information for the view controller.

- applicationFinishedRestoringState

Called on restored view controllers after other object decoding is complete.