如何在 UITabBar 中隐藏文本 [英] How to hide text in UITabBar
本文介绍了如何在 UITabBar 中隐藏文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试创建一个只有图像的标签栏,没有标题.我该怎么做?
I am trying to create a tab bar with just the image, no title. How would I go about doing this?
这是我设置图像的方法:
Here is how I set the image:
FeedViewController.tabBarItem.image=[UIImage imageNamed:@"Describe-Home_Icon_NormalArtboard-1"];
推荐答案
[FeedViewController.tabBarItem setTitle:@""];
这篇关于如何在 UITabBar 中隐藏文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文