7ball
7ball

Reputation: 2315

Disable taps events but not scrolling on UIScrollView

Is it at all feasible to ignore every taps on a UIScrollView but still allow it to scroll? For example, if I have a bunch of UIButton in the UIScrollView, is there a way to stop the taps (i.e. the buttons aren't tappable), but the scroll view still scrolls?

I tried turning off userInteractionEnabled but that just doesn't let me scroll altogether...

Upvotes: 0

Views: 246

Answers (1)

Milan Nosáľ
Milan Nosáľ

Reputation: 19737

Try setting userInteractionEnabled to false to UIScrollView subview(s).

Upvotes: 1

Related Questions