I would like the rounded rectangular part of an object of type UIButton to be the solid custom color that I specify. I understand that
. setTitleColor: changes the color of the text, backgroundColor: changes the color of the four circular corner shapes behind the rounded rectangle
The question is how to change the color of the rounded part of the rectangle.
I tried setImage, but the image should have rounded corners and it doesn't matter when the button resizes. It does not scale to a new size.
Thanks in advance.
source
share