How to add storyboard reference in another storyboard

心已入冬 提交于 2019-12-05 18:24:57

问题


I have 2 storyboard - mainStoryBoard1 and mainStoryBoard2.

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

Anyone has idea how to do this?


回答1:


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.



来源:https://stackoverflow.com/questions/34578696/how-to-add-storyboard-reference-in-another-storyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!