Reputation: 77
I am using the UITabbarview
with for item. For every tabbar item I am using the image and title.
Its perfect when I come that TabbarViewcontroller
screen and navigate to another to anther UIViewcontroller
by push.
But if i navigation to another UIViewController
by present then come back to same TabbarviewController
screen then title overlap on image of bar item.
Now I am not able to understand, why this happening and how to resolve this issue.
Upvotes: 1
Views: 1189
Reputation: 625
use this code in your "viewWillAppear" method.
-(void)viewWillAppear:(BOOL)animated
{
[UITabBarItem appearance].titlePositionAdjustment = UIOffsetMake(0, -3);
}
Upvotes: 1