只有图像为UITabBarItem [英] Only image as UITabBarItem

查看:107
本文介绍了只有图像为UITabBarItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想要一个图标作为UITabBarItem,而不是下面的文字,我想知道这是否可能,如果是的话,怎么样? TIA

I would only like to have an icon as the UITabBarItem and not the text underneath and I was wondering if this was possible, if so, how? TIA

推荐答案

如果你使用故事板,也许你可以使用 Image Inset 从酒吧项目的大小检查员,同时将标题设置为空:

If you use story board, maybe you can use Image Inset from size inspector of bar item and set title to empty at the same time:

这篇关于只有图像为UITabBarItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆