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

前端 未结 3 1177
天命终不由人
天命终不由人 2020-12-07 00:51

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 respon

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 01:03

    When the alpha is 0 they are unresponsive, as alpha = 0 is like hidden = YES and you can't click a hidden button.

提交回复
热议问题