Xcode: TabBar not showing in Interface Builder

随声附和 提交于 2019-12-12 05:11:49

问题


Interface Builder: I have a TabBarController connected to three different scenes. Every scene starts with a NavigationController and then has some different ViewControllers.

The problem now is, that the Interface Builder is not longer showing the TabBars in the different scenes, expect in the TabBarController. I can still access the TabBarItems in the Document Outline and the app runs as expected, but it confuses me.

Every scene is refactored to its own Storyboard, in case that matters.

Thanks in advance for any hint!

Edit: I hope these pictures make the issue more clear. There should be a TabBar (with a TabBarItem) in the second picture, but there isn't one.


回答1:


You can tell IB to include a tab bar in your View Controller by selecting it and then selecting Opaque Tab Bar in the Bottom Bar dropdown, under Simulated Metrics.



来源:https://stackoverflow.com/questions/37192733/xcode-tabbar-not-showing-in-interface-builder

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