我想添加更多标签栏而不是两个

问题描述 投票:-1回答:1

我想添加比2更多的标签栏,我尝试了主故事板之间的make segue,但我不能成功。简介如何添加更多标签栏?

ios swift uiviewcontroller tabbar
1个回答
0
投票

如果您想通过Storyboard添加更多View Controllers:

  1. 选择你的UITabBarController
  2. 按下Ctrl键(按住)
  3. 拖动到另一个视图控制器(按住Ctrl键)
  4. view contollers Relationship Segue中选择Select <code>view contollers</code> in <code>Relationship Segue</code>结果Result

如果你想用UITabBarController创建Storyboard Reference,你可以使用这种方法:

  1. 将TabBarController添加到Storyboard。
  2. 删除添加的视图控制器。
  3. 添加Storyboard参考尽可能多的Storyboard Reference
  4. view contollers中选择Relationship Segue,就像在第一个方法Storyboard Reference with UITabBarController中一样
© www.soinside.com 2019 - 2024. All rights reserved.