How to add a storyboard link to another storyboard

I have 2 storyboards - mainStoryBoard1 and mainStoryBoard2 .

I need to execute a segue from ViewController of mainStoryBoard1 to ViewController of mainStoryBoard2.

Does anyone have an idea how to do this?

+5
source share
1 answer

The Builder interface in Xcode 7 has a "Storyboard Reference" object in the "Object Library":

enter image description here

Just drag it onto your storyboard. You can then select this link for the storyboard and specify the storyboard to which it relates in the attribute inspector:

enter image description here

You can then add segue to this link, and you will be transferred from the scene in one storyboard to the scene in another storyboard.

+4
source

Source: https://habr.com/ru/post/1239734/


All Articles