How to detect click in subview in hamburger menu

113 Views Asked by At

So I have this hamburguer menu that pop ups via animation and I have a question. How can I detect if the user touched outside of the current view, in this case in the previous view that is just a little bit in the right so I can dismiss the current view. I'm having lots of problems with this because it seems like I can't detect anything on that right view. Im using a table view controller and a transition to make the hamburger menu. Im leaving 2 images bellow so you guys can take a peak and if u feel like it help me.

Thanks in advance guys!

The side menu

The main view

0

There are 0 best solutions below