Manjeet Singh
Manjeet Singh

Reputation: 77

UITabbar View overlap title on image after present the another UIViewController

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.

like the images enter image description here

enter image description here

Now I am not able to understand, why this happening and how to resolve this issue.

Upvotes: 1

Views: 1189

Answers (2)

harp
harp

Reputation: 125

Select tab bar icon and choose image inset all = 0

Upvotes: 0

Birendra
Birendra

Reputation: 625

use this code in your "viewWillAppear" method.

-(void)viewWillAppear:(BOOL)animated

{
      [UITabBarItem appearance].titlePositionAdjustment = UIOffsetMake(0, -3);

 }

Upvotes: 1

Related Questions