How can a superview interecept a touch sequence before any of its subviews?

前端 未结 2 1842
别跟我提以往
别跟我提以往 2021-01-15 14:41

I have a view hierarchy that is layed out as follows:

parentView

 scrollView

    contentViewA

    containerView

         contentViewB

         co         


        
2条回答
  •  没有蜡笔的小新
    2021-01-15 15:22

    To stop the scroll view from intercepting the touch events, set the userInteractionEnabled property like so:

    scrollView.userInteractionEnabled = NO;

提交回复
热议问题