切换视图时标签栏丢失 [英] Tab Bar Lost When Switching Views

查看:30
本文介绍了切换视图时标签栏丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个嵌入在 navigationController 中的视图.这些视图之一也嵌入在 tabController 中.

I have two views that are embedded inside navigationControllers. One of these views is also embedded inside a tabController.

当我在两个视图之间来回切换时,我丢失了最初位于其中一个视图上的 tabBar.

When I switch back and forth between the two views, I lose the tabBar that was originally on one of the views.

解决此问题的最佳方法是什么?我目前正在使用 segue 并且不知所措.

What is the best way to go about fixing this issue? I am currently using a segue at the moment and am at a loss.

推荐答案

我会将我的导航控制器更改为根视图控制器,或者让标签栏先转到导航视图控制器

I would change my navigation controller to be the root view controller, or have the tab bar segue go to the navigation view controller first

这篇关于切换视图时标签栏丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆