Tabbar 未显示在 XCode 的扩展视图中 [英] Tabbar is not showing in extended views in XCode

查看:27
本文介绍了Tabbar 未显示在 XCode 的扩展视图中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

!我是一个客观的 c 初学者.我已经在这个问题上研究了几个小时并观看了 youtube 视频,但仍然无法解决这个问题 - 我创建了标签栏控制器,第一个视图作为图片中显示的第一个标签.然后我尝试用另外两个视图扩展第一个视图:一个主表视图和一个详细信息 UIView.第一个视图通过第一个视图上的按钮链接到主表视图.我编译运行该项目,一切都很顺利,除了主表视图和详细信息 UIView 上没有显示标签栏.我试图添加标签栏项目,但仍然没有显示任何内容.我还检查了属性检查器以确保底部栏属性设置为推断",我现在可以做什么?谢谢你的帮助.

! am an objective c beginner. I have researched hours on this issue and have watched youtube videos but still cant solve this problem - I have created tabbar controller with first view as the first tab as dispalyed in the pic. I then tried to extend the first view with two more views: one master table view and one detail UIView. The first view is linked to the master table view through the button on the first view. I compiled to run the project, everything is smooth except the tabbar is not showing on the master table view and detail UIView. I tried to add in the tabbar item, but still nothing is shown. I also checked the attribute inspectors to ensure the bottom bar property is set to "infered", what can i do now? thanks for your help.

推荐答案

Tab bar 控制器加载的视图控制器必须是 UINavigationController.查看您在此处上传的图片,我认为您的情况不会发生这种情况.下面的图片一定能帮助你理解我的观点.

The view controller loaded by the Tab bar controller must be a UINavigationController. Looking at the image that you have uploaded here I don't think that is happening in your case. The following image must help you understand my point.

一旦你像上面那样设置你的故事板,你的问题就会解决.

Once you set up your storyboard like above your problem will be solved.

这篇关于Tabbar 未显示在 XCode 的扩展视图中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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