Cocoa / iPad. How to save UIButton interactively when its alpha == 0?

When I set UIButton alpha to 0, it behaves as if it is not turned on. I checked and although the button remains on (although it is invisible (but not hidden, I checked it too)), it stops working.

Is there a way to maintain clickability even when its alpha is 0?

+5
source share
2 answers

Try adding another UIButton on top of it with the UIButtonStyle set to "custom" and just leave it as it is, except for adding IBAction to it.

+10
source

UIButtonStyle "custom". -0 " ".

+11

All Articles