0

I have to customize the images in tabbar items for insert an image in my icon, how can I do? I heard from my friend that I should create a new xib and work it to do a new tabbar item customized . Is it true?

thanks a lot!

M_Nil
  • 21
  • 1
  • 5

1 Answers1

0

just put the below method in

appdelegate.m

File

- (void)customizeAppearance

{

// Costomise UITabBar   

// Note you can also specify “finished” and “unfinished” images if you wish to modify the manner in which the selected & unselected images appear.

UIImage *tabBackground = [[UIImage imageNamed:@"tab_bg"]resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];

[[UITabBar appearance] setBackgroundImage:tabBackground];

[[UITabBar appearance] setSelectionIndicatorImage:[UIImage imageNamed:@"tab_select_indicator"]];

}

this may help you Please find much more on this site

The iOSDev
  • 5,237
  • 7
  • 41
  • 78