Edit: Here is the screenshot:
The button on the right is selected. I'd like the color to fill the entire button.
The buttons are created on storyboard with widths pinned. I simply toggle selected/not selected with
button.selected = YES;
I have not found any similar questions about adjusting the width of the part that is selected, and I haven't been able to figure out any solutions. Any ideas?
Make sure your UIButton
's type is "Custom", not "System".
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