Any idea how to set background color of a UIButton?
I tried to use
self.sendButton.backgroundColor = [UIColor greenColor];
but it didn't work.
Method 1 − Using the storyboard editorAdd a button on your storyboard, select it Go to it's attribute inspector and select 'Background' property to choose the color.
A control that executes your custom code in response to user interactions.
You need to use a custom button. You can set an image as the background or define UIColor.
Take a look at these links:
Iphone UIButton background color
Is it even possible to change a UIButtons background color?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With