当我点击 TabBar 项目时,整个 TabBar 消失了....,Swift,Xcode

When I click in the TabBar item , The Entire TabBar disappears.... , Swift , Xcode

我不知道为什么会这样,但如果您知道,请告诉我。 当我单击 TabBar_ProfileButton 时,转到 Profilepage,然后再次单击 TabBarButton_ChatButton,然后转到 ConversationView,TabBar 消失了。我不知道为什么...... 我试图调用 tabBat isHidden = false 使其不消失,并且因为第一个导航控制器 TabBar 被隐藏了,因为它不必出现在 welcomeView 、 loginView 或 registerView 中。

Storyboard,Storyboard - WelcomeVC - Descriptions,Storyboard - ConversationVC - Description,ConversationVC Swiftfile - Code,First time ConversationVC Loads,First time ProfileVC Loads,Second time ConversationVC Loads - TabBar Disappears,

您必须为 tableView 设置约束或更改它的 contentInset。否则你的 tableView 会出现在 TabBar 的顶部,这就是它消失的原因

尝试使用此代码:
tableView.contentInset.bottom = self.tabBarController?.tabBar.frame.height ?? 0

下次请务必放上你的代码,不要只是截屏,因为这样别人看不太舒服!