I have a UIScrollview with paging enabled. There are 3 views (pages) inside this scroll view. There’s a tap gesture on the parent view of the scrollview that shows and hides a navigation bar at the top.
The Problem:
In one of the pages I want to add buttons. But the problem is that whenever i tap these buttons, the show/hide navigation bar method is also fired. What is the best way to pass the touch only to these buttons and not the the parent view of the scrollview?
NJones is on the right track, but I think there are some problems with his answer.
I assume that you want to pass through touches on any button in your scroll view. In your gesture recognizer’s delegate, implement
gestureRecognizer:shouldReceiveTouch:like this: