Here is a setBackgroundColor function to add to UIButton.cpp:
void Button::setBackgroundColor(const Color3B& color)
{
_buttonNormalRenderer->updateDisplayedColor(color);
_buttonClickedRenderer->updateDisplayedColor(color);
_buttonDisableRenderer->updateDisplayedColor(color);
}
Use this after setting the button textures. Also, you must use setCascadeColorEnabled( false ) on the UIButton after creating it.