I have a horizontal, paged scroll view that houses multiple view controllers, each of which contains a UIImageView. Within each view controller, I am adding a Tap GestureRecognizer to the ImageView so I can perform a specific action when the image is tapped/double tapped.
However, the ImageView gesture recgonizers don't seem to be firing, and therefore the selectors are not getting called.
I anticipate it may have something to do with the Imageview's being housed in the scrollview, but I am not sure where to start. Is there anything specific I need to do to ensure that the gesture recognizer gets called for each imageview within the scrollview?
Thanks for your suggestions.
Perhaps your UIImageView is not configured to receive user interaction
UIImageView has in default userInteractionEnabled set to NO. I would try to change it to YES.
UIgestureRecognizer in a view inside a UIScrollView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With