How to detect touch over a UIView when touched over a UIButton?
Posted
by
jglievano
on Stack Overflow
See other posts from Stack Overflow
or by jglievano
Published on 2011-06-27T12:19:10Z
Indexed on
2011/06/27
16:22 UTC
Read the original article
Hit count: 189
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?
© Stack Overflow or respective owner