cocoa touch - Objective-C - Changing Inactive UITabBar Image Colour -


i'm trying find way change tint colour inactive images on uitabbar - here image of current progress enter image description here

i'm trying change colour of gray image to, currently, other colour, without luck. here code using:

[[uitabbar appearance] setselectedimagetintcolor:[uicolor whitecolor]]; [[uitabbar appearance] settintcolor:[uicolor whitecolor]]; 

i've been searching on google way make work having no luck. appreciated.

if trying achieve displaying of actual image @ uitabbar use following code:

tabbaritem.image = [tabimage imagewithrenderingmode:uiimagerenderingmodealwaysoriginal];

and if want display image in original condition selected use following :

tabbaritem.selectedimage = [tabimage imagewithrenderingmode:uiimagerenderingmodealwaysoriginal];

these 2 alternative deprecated methods setfinishedselectedimage: , withfinishedunselectedimage:


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -