开发者

cocoa/iPad How do I keep a UIButton clickable when its alpha == 0?

When I set a UIButton's alpha to 0, it behaves as if it isn't enabled. I've checked and, even though the button does remain enabled (though invisible (but not hidden, I checked that as well)),开发者_JAVA百科 it ceases to work.

Is there any way to keep it clickable even when its alpha is 0?


UIButtonStyle set to "custom". And instead of alpha 0, you need to set background to 'clear color'.


Try to put another UIButton on top of it with it's UIButtonStyle set to "custom" and just leave it as it is, except of adding your IBAction to it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜