Frage

I know this is a common question but it's quite different in my case.

I want an image to be placed when the bar is active and I've done that successfully using these code under didFinishLoadingWithOptions method [[UITabBar appearance] setSelectionIndicatorImage:[UIImage imageNamed:@"tabbar-active.png"]];

And that's what my app looks like

enter image description here

Now I just want to remove that glossy effect, not the blue image on the bar

Thanks in advance!

War es hilfreich?

Lösung

After digging a little bit, I found the solution for the same. You simply need to create an UIImage object with empty image.

    [yourTabbar setSelectionIndicatorImage:[[UIImage alloc] init]];

Thats it :)

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top