Does UIButton become disabled when its alpha is set to 0.0?

Published

I have a few buttons in my app whose alpha is currently set to zero. These buttons are completely non-responsive, but as soon as I increase their alpha, they begin to respond. Is this expected behavior?

Source: Xamarin.ios Questions

Published
Categorised as Uncategorised Tagged , ,

Answers

I’m a little late to the game but you could always set the UIButton background color to clearcolor. This would keep them active. In my case, I am pulsating a button to give it a glowing effect but to do this, I must set it’s background to clear, then add a UIIMageView as a subview and add the effect to the image, NOT the button.

Hope this helps anyone else with this problem.


Nathanial Treutel

Leave a Reply

Your email address will not be published. Required fields are marked *

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq