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
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
Post a Comment