UIButton does not work when it in UIScrollView

后端 未结 8 482
说谎
说谎 2020-12-01 10:38

My structure of views:

UITableView
  UITableViewCell
    UIScrollView
      CustomView
        UIButton

The problem is UIButton doesn\'t wo

8条回答
  •  既然无缘
    2020-12-01 11:40

    I had same issue & same hierarchy of the views, With latest sdk , just use it :

    Setting delaysContentTouches to NO for UIButton in the same UITableViewCell.

    self.tableView.delaysContentTouches = NO
    

提交回复
热议问题