如何着色UIBarButtonItem背景颜色?

问题描述:

我有一个UIToolbar包含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?

在这篇文章中找到答案:

Found the answer in this post:

iOS 4上的UIToolbar色调