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!
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!
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