Is there a way to forward touches to a subview which has a gesture recognizer attached, and that the forwarded even开发者_如何学Cts will initiate the gesture recognizer?
I got it to work with a little workaround (might not be suitable in all cases...).
Because UIGestureRecognizers get their events from the sendEvent method before UIViews do,
I created a custom 'ForwarderGestureRecognizer' on the outer view and all this view does is to forward the events to the recognizers of the subview view when required.
精彩评论