I am customizing the UITabBar
. I used my custom image in UITabBarItem
. The problem is whether there is a gradient/gloss on the item. I checked Apple's app Store didn't had any of this glossy effect on its UITabBarItem
. How can i remove gradient from UITabBarItem
?
Asked
Active
Viewed 1,120 times
0

Hassy
- 5,068
- 5
- 38
- 63
1 Answers
1
You just need to put clear image as `yourImage', it may help you
[[UITabBar appearance] setSelectionIndicatorImage:[UIImage {yourImage}]]
Edit i just googled it and found lot of similar questions. You can also try below code of lines
[[UITabBar appearance] setShadowImage:[UIImage imageNamed:@"Tappbarimage.png"]];
You'll have to provide the images yourself to the UITabBarItem with using this tabbarMethod setFinishedSelectedImage:withFinishedUnselectedImage:
.
There's no other way to affect the processing it does to the images besides changing the color of the gradient with UITabBar's selectedImageTintColor
appearance property.

Dileep
- 2,399
- 4
- 26
- 39

Nitin Gohel
- 49,482
- 17
- 105
- 144
-
I need to remove gradient from from UITabBarItem, this code will cause selection to be clear not my requirement – Hassy Jun 07 '13 at 08:23
-
setFinishedSelectedImage:withFinishedUnselectedImage: does this trick thanks alot for your help :) – Hassy Jun 07 '13 at 09:29
-
This helped me to hide shadow from my non-standartized height tab bar: [[UITabBar appearance] setShadowImage:[UIImage new]]; – digipeople Feb 19 '14 at 08:09