UITapGestureRecognizer applies to both UIImageView and its subzone ( UITextView ). However, when I click on subview, the receiver becomes a subview and its parent view (i.e. UIImageView + UITextView ). However, it should only be a subview , because this is the one I used. I assumed that nested gestures would react first, but apparently the parent receives a fist, and then goes to the child.
Thus, there are various solutions for different scenarios (not similar to mine, but rather the buttons inside the scroll conflict). How can I easily fix my problem without a possible subclass and to support iOS 6+? I tried postponing the start of the UIGestureRecognizer on UIImageView , and I tried setting cancelsTouchesInView to NO - all without luck.
ios objective-c iphone uiview uigesturerecognizer
Vad
source share