【发布时间】:2017-08-15 21:30:54
【问题描述】:
我想只显示没有图像的标签栏项目的标题。可能吗?当我尝试设置
let tabItem = UITabBarItem()
tabItem.title = "Tab1"
tabItem.selectedImage = nil
tabItem.image = nil
tabViewController?.tabBarItem = tabItem
我只是得到一个可点击的空白区域,但没有标题或图像。
【问题讨论】:
-
看看this能不能帮到你
-
谢谢。您的解决方案完美运行。
标签: ios swift3 uitabbarcontroller uitabbar