UITabBarItem title in centre of title, not at bottom
I want to make place tabbaritem.title in centre of item, it's possible? I'm trying make image with text 开发者_运维知识库in center and create custom tabbaritem, but it looks awful.Help me please.
Try with the iOS5 Appearance Proxy:
[[UITabBarItem appearance] setTitlePositionAdjustment:UIOffsetMake(0.0, -2.0)];
Have you tried using setTitlePositionAdjustment::[UIOffsetMake(<#CGFloat horizontal#>, <#CGFloat vertical#>)]
?
If that doesn't work, why don't you create your own control? Have it subclass NSObject and implement the UIImageView with the centered text
精彩评论