Instance Method


Initiates the segue with the specified identifier from the current view controller'€™s storyboard file.


- (void)performSegueWithIdentifier:(NSString *)identifier sender:(id)sender;



The string that identifies the triggered segue. In Interface Builder, you specify the segue’s identifier string in the attributes inspector.

This method throws an Exception handling if there is no segue with the specified identifier.


The object that you want to use to initiate the segue. This object is made available for informational purposes during the actual segue.


Normally, segues are initiated automatically and not using this method. However, you can use this method in cases where the segue could not be configured in your storyboard file. For example, you might call it from a custom action handler used in response to shake or accelerometer events.

The current view controller must have been loaded from a storyboard. If its storyboard property is nil, perhaps because you allocated and initialized the view controller yourself, this method throws an exception.

See Also

Performing Segues

- shouldPerformSegueWithIdentifier:sender:

Determines whether the segue with the specified identifier should be performed.

- prepareForSegue:sender:

Notifies the view controller that a segue is about to be performed.

- allowedChildViewControllersForUnwindingFromSource:

Returns an array of child view controllers to search for an unwind segue destination.

- childViewControllerContainingSegueSource:

Returns the child view controller that contains the source of the unwind segue.

- canPerformUnwindSegueAction:fromViewController:sender:

Called on a view controller to determine whether it responds to an unwind action.

- unwindForSegue:towardsViewController:

Called when an unwind segue transitions to a new view controller.