Protocol

NSSeguePerforming

A set of methods that support the mediation of a custom segue.

Declaration

@protocol NSSeguePerforming

Overview

When you subclass NSStoryboardSegue to express a custom transition or containment relationship between storyboard scenes, you might also want to provide code that prepares the destination/contained view or window controller object. Put this code in an override of the prepareForSegue:sender: method.

To conditionally disallow the performance of a segue, override the shouldPerformSegueWithIdentifier:sender: method, returning NO.If you need to programmatically trigger a segue that cannot be expressed in a storyboard file, such as a transition between scenes in different storyboards, use the performSegueWithIdentifier:sender: method in this protocol.

Topics

Working with Storyboard Segues

- performSegueWithIdentifier:sender:

Performs the specified segue.

- prepareForSegue:sender:

Called when a segue is about to be performed.

- shouldPerformSegueWithIdentifier:sender:

Called immediately prior to the performance of a storyboard segue.

Relationships

Inherits From

See Also

Storyboard

NSStoryboard

An encapsulation of the design-time view controller and window controller graph represented in an Interface Builder storyboard resource file.

NSStoryboardSegue

A transition or containment relationship between two scenes in a storyboard.