Normally tab bar selection color is blue in iPhone. Instead of that I want to change the color as brown. How can I change the tabbar selection color? Shall I need to create custom tabbar controller?
In case you want to use an image:
[self.tabBar setSelectionIndicatorImage:[UIImage imageNamed:@"selected_tab.png"]];
In case you want to use a color:
[self.tabBar setSelectedImageTintColor:[UIColor whiteColor]];
yes if you create customTabBar controller and switch background image of TabBar control then its work like system TabBar...you just create 5 different images and set it with selected tab on your TabBar Delegate method,here if you use graphics image then its also work.....means you use this tabbar globally in your many application :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With