How to add storyboard reference in another storyboard

后端 未结 1 1937
栀梦
栀梦 2021-02-20 10:14

I have 2 storyboard - mainStoryBoard1 and mainStoryBoard2.

I need to perform a segue from ViewController of mainStoryBoard1 to

1条回答
  •  天命终不由人
    2021-02-20 10:50

    Interface Builder in Xcode 7 has "Storyboard Reference" object in the "Object library":

    Just drag that onto your storyboard. You can then select that storyboard reference and specify the storyboard to which it refers in the attributes inspector:

    Then you can now add segue to this reference and you'll segue from the scene in one storyboard to a scene in another storyboard.

    0 讨论(0)
提交回复
热议问题