How to move title of UITabBarItem?

iWizard picture iWizard · May 4, 2012 · Viewed 13k times · Source

Can somebody tell me please how can I move title of UITabBarItem for example 2px to top?

Answer

iWizard picture iWizard · Mar 10, 2013

Solution:

UITabBarItem *item = [tabBar.items objectAtIndex:0]; 
item.titlePositionAdjustment = UIOffsetMake(0, -5.0);