UIButton inside a view that has a UITapGestureRecognizer

I have view with a UITapGestureRecognizer. So when I tap on the view another view appears above this view. This new view has three buttons. When I now press on one of these buttons I don’t get the buttons action, I only get the tap gesture action. So I’m not able to use these buttons anymore. What can I do to get the events through to these buttons? The weird thing is that the buttons still get highlighted.

I can’t just remove the UITapGestureRecognizer after I received it’s tap. Because with it the new view can also be removed. Means I want a behavior like the fullscreen vide controls.

12 Answers
12

Leave a Comment