iphone - UITabBar tint in iOS 7 -


how can specify tint of images when tab selected , unselected?

i have tried doesnt work:

[[uitabbar appearance] settintcolor:[uicolor redcolor]]; [[uitabbar appearance] setselectedimagetintcolor:[uicolor greencolor]]; 

this makes selected image tint red(not green) , unselected tint gray (not red).

you can set tint color selected , unselected tab bar buttons this:

[[uiview appearancewhencontainedin:[uitabbar class], nil] settintcolor:[uicolor redcolor]]; [[uitabbar appearance] setselectedimagetintcolor:[uicolor greencolor]]; 

the first line sets unselected color - red in example - setting uiview's tintcolor when it's contained in tab bar. note sets unselected image's tint color - doesn't change color of text below it.

the second line sets tab bar's selected image tint color green.


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -