只有图像为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: