Instance Method

initWithIdentifier:source:destination:

The designated initializer for a storyboard segue.

Declaration

- (instancetype)initWithIdentifier:(NSStoryboardSegueIdentifier)identifier source:(id)sourceController destination:(id)destinationController;

Parameters

identifier

The unique identifier for the storyboard segue. See the identifier property.

sourceController

The starting/containing view controller or window controller for the storyboard segue.

destinationController

The ending/contained view controller or window controller for the storyboard segue.

Return Value

An initialized storyboard segue, ready to be performed.

Discussion

When a segue begins, the system calls this method. To run code during segue initialization, implement a storyboard segue subclass and override this method.

Whenever this method is called, the system then calls the perform method.

See Also

Customizing Storyboard Segue Initialization and Invocation

+ segueWithIdentifier:source:destination:performHandler:

Creates a storyboard segue and a block used when the segue is performed.

- perform

Performs a visual transition from one controller to another.