I'm trying to create a UIButton of System type with a clear background color. The problem is that it shows a gray background color even if I set it to clearColor. I can do it with a Custom type UIButton, but then the button loses the default effects for focusing and selection.
Does anyone knows how to create a System UIButton with a entirely transparent background?
Since tvOS 11 there is a solution for that using the button type "plain" instead of "system" without loosing the effects for focusing and selection:
Open the button properties in the Interface builder an select "Type"->"Plain"
Set the button background color to "clear color"
Thats it.
Watch Apples Video about "UIButtonTypePlain" here (starts at 13:44): UIButtonTypePlain explained
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