Change the brightness of the TabBar button (not on the image hiding the button hue)

I created a tab application, I am using a custom TabBar with reverse back window. I finished all the parts, but could not remove the glow of the tab button when pressed (I just change the selection of UIButton to click, but the glow is still there)

How to hide the glow of UITabBar buttons (i.e. hiding the hue of a button selection)?

Now TabBar looks like this.

Need a tabbar like this

+4
source share
5 answers

To change the color of the hue of the scoreboard

[[UITabBar appearance] setSelectedImageTintColor:[UIColor grayColor]];

+2
source

You can use the following code.

 [[UITabBar appearance] setSelectionIndicatorImage:[[UIImage alloc] init]]; 

Give it a try.

+9
source

It will definitely help you. Just create a UIImage object and pass it to the setSelectionIndicatorImage property.

 [yourTabbar setSelectionIndicatorImage:[[UIImage alloc] init]]; 
+2
source
 [self.tabBarController.tabBar insertSubview:[[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"1.png"]] autorelease] atIndex:1]; 
+1
source

You need to set the appearance of UITabBarItem :

 [[UITabBarItem appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys:[UIColor yellowColor], UITextAttributeTextColor, [UIFont systemFontOfSize:14.0f], UITextAttributeFont,nil] forState:UIControlStateHighlighted]; 
0
source

All Articles