Segue for another storyboard via interface

How do you create a segue between a view controller in one storyboard and a view controller in another storyboard?

+7
ios xcode interface-builder
source share
1 answer

It used to be impossible without code, but with Xcode 7, Apple provided us with a powerful tool - Storyboard References .

What you need to do is drag this item into the initial storyboard:

storyboard help system

In your settings, you select the desired storyboard and, if desired (by default, uses the initial view controller), set your identifier.

help options for storyboards

Now you can define a segue for this view controller as usual.

Please note that only regular sessions work with iOS8. Relationships (e.g. root, embed, etc.) only work on iOS9.

+15
source share

All Articles