Tabbar is not showing in extended views in XCode

为君一笑 提交于 2019-12-24 13:47:21

问题


! 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.


回答1:


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.



来源:https://stackoverflow.com/questions/15622816/tabbar-is-not-showing-in-extended-views-in-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!