一 UIImageView上添加Button不能响应点击事件
[backImageView setUserInteractionEnabled:YES];//使添加其上的button有点击事件
本文解决了一个常见问题:在UIImageView上添加的Button无法响应点击事件。通过设置UIImageView的userInteractionEnabled属性为YES,使得Button能够正常工作。
一 UIImageView上添加Button不能响应点击事件
[backImageView setUserInteractionEnabled:YES];//使添加其上的button有点击事件

被折叠的 条评论
为什么被折叠?
