I have a UIButton which I’ve added in IB, however the view behind this button changes color and I need to switch the button’s type between InfoDark and InfoLight. Bizarrely though, buttonType property is read only. So how can i switch between light and dark info buttons?
I have a UIButton which I’ve added in IB, however the view behind this
Share
There’s no way to change the
.buttonTypeonce it’s set.You can prepare two buttons, and hide one of them depending on the background color.