I know there already are some questions about this but I couldn\'t find a solution. There is a very simple code that works just fine on one of my projects but not on an anot
You need to make sure that userInteractionEnabled
is enabled on all of the superviews of your view. If any of the superviews have this property set to false
, the touch events won't be processed for them or any of their subviews.
Maybe some of the superviews has the userInteractionEnabled set to "false"?