将视图控制器从一个故事板移动或复制到另一个故事板
问题描述:
我在一个Storyboard中有几个 UIViewControllers
。
现在我想将一些 UIViewControllers
移动到另一个Storyboard。有可能吗?
I have several UIViewControllers
in one Storyboard.
Now I want to move some UIViewControllers
to another Storyboard. Is it possible?
答
是的,这是可能的。
- 选择要复制的控制器
- 按 Command + C
- 打开你的第二个故事板文件
- 按命令 + V
- Select controllers you want to copy
- Press Command + C
- Open your second storyboard file
- Press Command + V
注意:IBOutlets在复制后保持不变(在Xcode 6.3.2上验证)。
Note: "IBOutlets remains as is after copying(Verified on Xcode 6.3.2)."