How to detect touch over a UIView when touched over a UIButton?
- by jglievano
I'm using (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event, and (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event to handle some dragging on a UIView. This UIView however have some UIButtons as subviews of the UIView and when the user touches over a UIButton (which are also over the UIView) the touches methods aren't called.
I need the touch methods in the UIView to be called at all times and still have the UIButtons working, how can I achieve this?