UIImageView上添加UIButton,button的點擊事件沒法響應

這時只須要把UIImageView的屬性userInteractionEnabled改成YES;spa

即:orm

        _ImageView.userInteractionEnabled = YES;io

相關文章
相關標籤/搜索