问题描述
使用方法initWithTabBarSystemItem
创建UITabBar对象时,是否可以设置标题?我尝试过之后设置title属性(在viewController
和选项卡栏项上),但是似乎没有什么不同.我知道initWithTitle: image:
方法,但是我想使用带有自定义标题的系统图标之一.
When using the method initWithTabBarSystemItem
to create a UITabBar object is there a way to set the title? I've tried setting the title property (on the viewController
and tab bar item) afterwards but it doesn't seem to make a difference. I know about the initWithTitle: image:
method but I want to use one of the system icons with a custom title.
推荐答案
如果您使用的是systemItem,则无法对其进行自定义,则必须制作一个自定义项,并使用相同或相似的图稿...可以从以下网站获取艺术品: http://www.teehanlax.com/blog/iphone- gui-psd /
If yo are using the systemItem you can't customize it, you will have to make a custom Item, and use the same or similar artwork... you could get the artwork from: http://www.teehanlax.com/blog/iphone-gui-psd/
这篇关于如何在UITabBarItem上自定义标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!