问题描述
我开始重构我的项目之一,以使代码更易于管理,并且Tab Bar Controller失去了其图标代表哪个选项卡的图标.没有这个,我会迷失哪个标签是重新排序的目的.
I started refactoring one of my projects to make the code easier to manage and the Tab Bar Controller lost its icons for which tab represents what. Without this I'm a bit lost which tab is what for re-ordering purposes.
当我使用情节提要参考时,如何使标签栏控制器的图标再次显示?
请参阅我的附件图像.请注意,前三个标签是空白",而我尚未重构的其他标签与图标和标题一起显示.
Refer to my attached image. Notice how the first 3 tabs are 'blank' but the other tabs that I have not refactored yet show with the icons and titles.
对于那些不熟悉情节提要参考的人,我在这里关注该教程: http://code.tutsplus.com/tutorials/ios-9-staying-organized-with-storyboard-references--cms-24226
For those unfamiliar with storyboard references I was following the tutorial here: http://code.tutsplus.com/tutorials/ios-9-staying-organized-with-storyboard-references--cms-24226
任务情节提要的示例以正确显示图标集
推荐答案
首先,在标签栏控制器所在的情节提要中,应该为引用的情节提要提供一个场景.
First, in the storyboard where the tab bar controller is, there should be a scene for the referenced storyboard.
只需单击与选项卡关联的场景,然后单击底部的选项卡栏,然后转到属性检查器,就可以为其分配新的图标.
Just click on the scene that tab is associated with and click the tab bar at the bottom, then go to the attributes inspector, and you'll be able to assign a new icon to it.
这篇关于保留图标时使用情节提要参考&标签栏控制器的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!