I have a button view that displays a popup view when touched. The popup view overlaps the button completely, but all touchesMoved:withEvent:
and touchesEnded:withEvent:
events are still routed to the button view. What if I want to handle touches in the popup view? I know I can simply delegate touch events from the button to the popup view by hand, but is there a better solution?
Asked
Active
Viewed 120 times
0

zoul
- 102,279
- 44
- 260
- 354
-
How are you adding to popup view? – freshking Sep 13 '14 at 08:57
-
I’m adding it to the button’s superview. – zoul Sep 13 '14 at 08:59
-
i have did same thing recently – Noor Sep 13 '14 at 09:00
-
use this one https://github.com/50pixels/FPPopover/ – Noor Sep 13 '14 at 09:03