views:

675

answers:

2

I have a UIToolbar that contains 2 buttons. The toolbar has a tint:

toolbar.tintColor = [UIColor colorWithRed:(102.0/255.0) green:(20.0/255.0) blue:(11.0/255.0) alpha:1];

How can I make the buttons have a similar tint color?

+2  A: 

The best thing to do is set the tintColor AFTER you add buttons to it, as in iOS 4.0, it no longer updates buttons added to the bars after the tintColor has been set.

jrtc27
A: 

Found the answer in this post:

http://stackoverflow.com/questions/3151549/uitoolbar-tint-on-ios4

Sheehan Alam