Custom UItabBarItem ( background image for the selected item)

i would like to implement a UItabBar like this image with a différent selected images for each tabBarItem. is this possible with iOS ? thanks

Answers


Yes, set the images via

UITabBarItem initializer initWithTitle:image:tag;

and the color via:

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

though you'll need to specify the exact color to meet your liking.


Need Your Help

Classifcation/Decision Trees and Choosing Splits

r machine-learning data-mining classification decision-tree

This is a very basic example. But I am doing some data analysis and am continually finding myself writing very similar SQL count queries like so to generate probability tables.

YUI App transition “flickers” on showView

javascript css css-transitions yui

I have a problem with transitions in a YUI app. Every time I change view using the showView method, then the content of the view is move to left for a very short time and then back to where it belo...