I’m trying to customize a UITabbar using the following code without any luck:
this is in my viewDidLoad method
UIImage *tabBackground = [[UIImage imageNamed:@"tabbar.png"]
resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
// Set background for all UITabBars
[[UITabBar appearance] setBackgroundImage:tabBackground];
// Set background for only this UITabBar
[[self.tabBarController tabBar] setBackgroundImage:tabBackground];
any idea where I might be going wrong here? thanks
We can change the background color of UITabBar controller. Please refer the code which is given below.Hope this helps you.