简体   繁体   English

将我的视图连接到UITabBarController时导航栏下的内容

[英]Content under the navigation bar when connect my view to a UITabBarController

I added a UITabBarController , then manually I added a navigation bar to the UITabBarController , so my UITabBarController looks like this: 我添加了UITabBarController ,然后手动将导航栏添加到UITabBarController ,所以我的UITabBarController如下所示:

在此处输入图片说明

Then I drag a segue from my UITabBarController to two UITableViewController . 然后,将序列从我的UITabBarController拖到两个UITableViewController

My problem is that in my UITableViewController when I load data, the data comes behide the navigation bar, not under it. 我的问题是,当我加载数据时,在UITableViewController ,数据隐藏在导航栏的下方,而不是在其下方。

在此处输入图片说明

What do I do wrong ? 我做错了什么?

您认为应该被嵌入navigation controller第一则u嵌入该navigation controllertabbar controller那么它应该工作正常

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

相关问题 推送到View Controller时,导航栏覆盖了我的内容 - Navigation Bar covers my content when pushing to a View Controller UITabBarController中“更多”视图控制器的自定义导航栏 - Custom navigation bar for the “More” View Controller in a UITabBarController 当推入我的UITabBarController时,视图控制器隐藏的选项卡栏 - Tab bar hidden by view controller when pushed inside my UITabBarController 将 SWRevealViewController 与 UITabBarController 一起使用时导航栏无法访问 - Navigation bar not accessible when using SWRevealViewController with UITabBarController 导航栏下的 CollectionView 内容 - CollectionView content under navigation bar 首次加载时,UIScrollView 内容位于导航栏下方 - UIScrollView content is under navigation bar when first loaded 在半透明导航栏下查看? - View under translucent navigation bar? 为UITabBarController子视图控制器设置相同的导航栏? - Set same navigation bar for UITabBarController child view controllers? iOS 7中的UITabbarController布局问题 - 视图位于导航栏后面 - UITabbarController layout issues in iOS 7 - view going behind the navigation bar UITabBarController的子视图控制器中的导航栏按钮无响应 - Navigation bar button unresponsive in child view controller of UITabBarController
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM