UIButton does not work when it in UIScrollView

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

    Your CustomView's frame could be interfering with your UIButton. Are they overlapping? Add your button to the CustomView just to test by [CustomView addSubview:UIButton]; (using your values of course). If it works, then your issue is most likely an overlap.

提交回复
热议问题