Dakata
Dakata

Reputation: 1355

Any ideas how to remove a background color of a button?

I am trying to remove the pink color of this button, but it seems that I can't. I have looked inside my code and I couldn't find a line where I set it to be pink. Any ideas how to remove it, it should be transparent.

enter image description here

Upvotes: 1

Views: 163

Answers (2)

Reinier Melian
Reinier Melian

Reputation: 20804

Check this

check button.backgroundColor = UIColor.clear

You can also check this in the interface builder

enter image description here

I hope this helps you

Upvotes: 2

TheValyreanGroup
TheValyreanGroup

Reputation: 3599

Setting the background color to clear will make the button transparent.

btSeeWhatsThere.backgroundColor = UIColor.clear()

Upvotes: 4

Related Questions