Make UIGestureRecognizer for taps running summaries

I attached the user UIGestureRecognizer one UIView , which fills almost the entire screen. This view contains a small subquery, which should also get normal strokes.

Problem: The bindings that are running in this stock, will not be processed by a resolver attached to its parent object.

I want gestureRecognizer to be the first priority and work, even if the subtitle is affected. How can I forward all the touches that started in this subtitle to its parent so that my gestureRecognizer can do its job?

+1
source share
1 answer

I have found a solution! It is actually quite simple.

 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { // Forward this message up the responder chain [super touchesBegan:touches withEvent: event]; } 

The call to super in touchBegan for subview - is all that is required. I found it in this blog post Allow supervisor to receive events caught rootstock

+4
source

All Articles