简体   繁体   English

iOS未显示标签栏和TableView

[英]iOS not showing Tab Bar and TableView

I created Tab Bar application and created one button at the first view controller. 我创建了Tab Bar应用程序,并在第一个视图控制器上创建了一个按钮。 This button has action which open second view controller. 该按钮具有打开第二个视图控制器的操作。 Then second view controller is loaded, table bar disappeared. 然后第二个视图控制器被加载,表格栏消失了。 How can I show table bar on all view controllers? 如何在所有视图控制器上显示表格栏? Describe it in details, please. 请详细描述。 I just start learning iOS application developing. 我刚刚开始学习iOS应用程序开发。

enter image description here 在此处输入图片说明

enter image description here 在此处输入图片说明

enter image description here 在此处输入图片说明

You will need a navigation controller in between tab bar controller and first view controller. 在选项卡栏控制器和第一视图控制器之间,您将需要一个导航控制器。 First view controller should be the root view controller for the navigation controller. 第一视图控制器应该是导航控制器的根视图控制器。

在此处输入图片说明

And Secondly on button event you have to select segue type as below: This will push the second viewcontroller from the first one and will also have the tab bar at the bottom. 其次,在按钮事件中,您必须选择以下segue类型:这将从第一个推第二个viewcontroller,并且选项卡栏也位于底部。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM