UIButton Doesn't allow UIScrollView to scroll

前端 未结 3 1753
予麋鹿
予麋鹿 2021-02-04 07:44

I have many UIButtons within a UIScrollView. Those UIButtons have actions attached to them in Touch Down Repeat. My problem

3条回答
  •  醉梦人生
    2021-02-04 08:34

    As long as you have the Cancellable Content Touches in Interface Builder set it should work. You can also set it in code:

    scrollView.canCancelContentTouches = YES;
    

提交回复
热议问题