Hi, I wanted this kind of Tab Selection effect. Instead of Black Background it should be blue one.Is it possible that when i select any tab it should come up with blue background.Please guide me what should i do?I have tried so much but not getting any proper solution.Please suggest me what should i do?
use the tintColor:
property of UITabBar:
myTabBarController.tabBar.tintColor = [UIColor blueColor];
note this only works on iOS5.
EDIT:
oops! sorry i misunderstood your question. I thought you meant the background color of the whole tab bar.
For that you can add an image for background of the selection using selectionIndicatorImage
property:
myTabBarController.tabBar.selectionIndicatorImage = [UIImage imageNamed:@"myImage.png"];
hope this helps
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