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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -