如何在另一个故事板中添加故事板参考

How to add storyboard reference in another storyboard

我有 2 个故事板 - mainStoryBoard1mainStoryBoard2

我需要执行从 ViewController of mainStoryBoard1ViewController of mainStoryBoard2.

的转场

有人知道怎么做吗?

Xcode7 中的界面生成器在 "Object library" 中有 "Storyboard Reference" 个对象:

只需将其拖到您的故事板上即可。然后,您可以 select 该故事板引用并在属性检查器中指定它所引用的故事板:

然后您现在可以向该引用添加转场,您将从一个情节提要中的场景转场到另一个情节提要中的场景。