UIButton inside UITableViewCell steals touch from UITableView

前端 未结 4 704
终归单人心
终归单人心 2021-02-14 21:14

I have a problem similar to this one but answer provided there doesn\'t help much. I have UITableView with some custom UITableViewCells, those cells ha

4条回答
  •  名媛妹妹
    2021-02-14 21:54

    Because all the above answers not working for me. I add a imageView on the button and make the imageView user interface YES, then add a tap gesture on the iamgeView. In the tap gesture related methods I put the button related methods in. so all is well.. may be hack. But it work well..

提交回复
热议问题