UIbutton's alpha vanishes and becomes transparent when clicked. Ive added this IBAction
@IBAction func btnTapped(sender: UIButton) { sender.highlighted = false //... }
and UIButton is still transparent when touched. How to prevent this?
I struggled with this problem and finally fixed it by changing the button type from System to Custom.
You tried something like:
yourButtonClass.setTitleColor(UIColor.blackColor(), forState: .Highlighted)