Instance Method

childViewControllerContainingSegueSource:

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

Declaration

- (UIViewController *)childViewControllerContainingSegueSource:(UIStoryboardUnwindSegueSource *)source;

Parameters

source

The unwind segue source object containing information about the unwind segue.

Return Value

The view controller that contains the segue source.

Discussion

Container view controllers call this method to identify the child view controller that is the source of the unwind segue. Typically, you call this method from your allowedChildViewControllersForUnwindingFromSource: method so that you can remove the corresponding view controller from the returned list of children.

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.

- performSegueWithIdentifier:sender:

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

- allowedChildViewControllersForUnwindingFromSource:

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

- 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.