I am looking for a solution to this problem that does NOT require using images/PNGs. I am looking for a way to remove the UIButton
's blue background color when it's in selected state, and I just cannot find a way to do that without using images. I am basically trying to do something like that in case of a UITableViewCell
:
cell.selectionStyle = UITableViewCellSelectionStyleNone;
Add a button on your storyboard, select it Go to it's attribute inspector and select 'Background' property to choose the color.
I had this same issue and I resolve it by changing the UIButton type from "System" to "Custom". The blue background color does not show up in selected state when it is a "Custom" type.
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