UIButton does not work when it in UIScrollView

后端 未结 8 496
说谎
说谎 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:17

    Link from Capt.Hook helped me. I used UIGestureRecognizer instead of UIButtons.

    Allow UIScrollView and its subviews to both respond to a touch Use it, if you have the similar problem.

提交回复
热议问题