Type Alias

NSStoryboardControllerCreator

A block that you use to handle the custom creation of controller objects from your storyboard file.

Declaration

typedef id  _Nullable (^NSStoryboardControllerCreator)(NSCoder *coder);

Parameters

coder

The coder object containing the storyboard data to use when configuring the window controller.

Discussion

Use your block to construct a window or view controller using a custom initialization method. Your custom method must accept an NSCoder object as one of its parameters, and it may include other parameters that you need to initialize the contents of the object. The implementation of your method must call the inherited initWithCoder: method at some point during its execution. Not doing so is a programmer error.

See Also

Instantiating Storyboard Controllers

- instantiateControllerWithIdentifier:

Instantiates a specified view controller or window controller from a storyboard.

NSStoryboardSceneIdentifier

A string that uniquely identifies a view controller or window controller in your storyboard file.