UIScrollView prevents touchesBegan, touchesMoved, touchesEnded on view controller

前端 未结 5 1923
一整个雨季
一整个雨季 2020-12-05 07:19

I am handling touches for a couple of my UI components in my view controller (custom subclass of UIViewController). It has methods touchesBegan:withEvent:,

5条回答
  •  感情败类
    2020-12-05 07:39

    "It was working fine. Then I added a scroll view (UIScrollView) as the top view in the hierarchy."

    is your scrollview on top of your contentview that contains items?

    all your components should be in the scrollview and not the view behind the scrollview

提交回复
热议问题