Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the glossy highlight on selected UITabBarItem in iOS?

Tags:

ios

iphone

ipad

By default in the UITabbar, there is a glossy highlight on the selected UITabBarItem.

Is it possible to remove the glossy highlight mask ?

Thanks.

like image 436
user403015 Avatar asked Aug 21 '11 09:08

user403015


1 Answers

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

Works like a charm!

like image 84
FrostyL Avatar answered Nov 15 '22 20:11

FrostyL