导航控制器后面的标签栏中会出现黑屏(black screen appears in the tab bar after navigation controller)

系统教程 行业动态 更新时间:2024-06-14 16:57:18
导航控制器后面的标签栏中会出现黑屏(black screen appears in the tab bar after navigation controller)

如果我按下第三个标签栏(标签栏索引:2),并打开RequestVC,它将显示如下图所示的黑色屏幕,所以我看不到我的标签。 我不知道为什么底部的绿色图标消失了

我不明白为什么会发生这种情况。 我只是取消导航栏中的“transculent”,并在NewRequestVC中,我也检查“隐藏底部酒吧推”

if I press the third tab bar (tab bar index : 2), and it opens RequestVC, it will show a black screen like the picture below, so I can't see my label. and I don't know why the green icon in the bottom dissapears

I don't understand why this happens. I just uncheck "transculent" in the navigation bar, and in the NewRequestVC I also check "Hide Bottom bar on Push"

最满意答案

我重新创建了你的故事板,它对我来说工作得很好。

试试这个步骤:

删除您的导航控制器 将您的请求VC嵌入到导航控制器中 将主标签栏连接到导航控制器关系segue作为视图控制器。 尝试重新启动Xcode?

如果故事板中没有任何错误,那么可能在你的代码中。

I recreate your storyboard, it's working fine for me.

Try these steps:

delete your navigation controller embed your request VC in navigation controller connect your main tab bar to navigation controller relationship segue as view controllers. Try you restart Xcode?

If there is nothing wrong in storyboard then probably in your code.

更多推荐

本文发布于:2023-04-12 21:01:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/7fe9d37ddd7d840425a9a93cfa4c90a7.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制器   栏中   黑屏   标签   black

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!