如何移动UITabBarItem的标题?
问题描述:
有人可以告诉我,我怎样才能将UITabBarItem的标题例如2px移到顶部?
Can somebody tell me please how can I move title of UITabBarItem for example 2px to top?
答
解决方案:
UITabBarItem *item = [tabBar.items objectAtIndex:0];
item.titlePositionAdjustment = UIOffsetMake(0, -5.0);