gpt4 book ai didi

ios - 所有 Controller 中带有标签栏和导航栏的应用程序

转载 作者:行者123 更新时间:2023-11-29 05:33:19 24 4
gpt4 key购买 nike

我在向屏幕中的所有 Controller 添加选项卡栏时遇到问题,它仅显示在直接连接到选项卡栏的 Controller 中。如何在所有屏幕上显示它?

This is my current main storyboard

最佳答案

我找到了答案,我的问题是我没有为每个选项卡栏项目添加导航 Controller ,我只制作了一个导航 Controller ,这就是选项卡栏没有出现的原因。正确的顺序是:

TabBarItem1 -> NavController1 -> ViewController1 -> ViewController2

TabBarItem2 -> NavController2 -> ViewController1 -> ViewController2

关于ios - 所有 Controller 中带有标签栏和导航栏的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57317493/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com