How to set aUIButton color?

Any idea to set the background color of the UIButton?

I tried to use

self.sendButton.backgroundColor = [UIColor greenColor];

but it didn’t work.

+5
source share
1 answer

You need to use a custom button. You can set the image as background or define UIColor.

Take a look at these links:

Iphone UIButton Background Color

Is it possible to change the background color of UIButtons?

+7
source

All Articles