Protocol

UIViewControllerRestoration

A set of methods used by classes that act as "restoration classes” for view controllers during the state restoration process.

Overview

To use a class that adopts this protocol, you must assign that class to the restorationClass property of one of your app’s view controllers. The method in this protocol should be used to create the view controller, if it does not yet exist, or return an existing view controller object, if one does exist.

Topics

Creating the View Controller

static func viewController(withRestorationIdentifierPath: [Any], coder: NSCoder)

Asks the receiver to provide the view controller that corresponds to the specified identifier information.

Required.

Relationships

See Also

Interface Restoration

protocol UIObjectRestoration

A set of methods used by classes that act as "restoration classes” for objects during the state restoration process.

protocol UIStateRestoring

A set of methods that let you include any object in your state restoration archives.