I have a UIView
with 2 subviews, let's call it view A
:
- a basic
UIView
, calledB
- a
UIScrollView
, calledC
I overrided the following method in view A
:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
When I touch view B
, touchesBegan:withEvent:
and touchesEnded:withEvent:
get called, but if I touch the UIScrollView
(view C
), there are not called.
I know this is the expected behaviour, but I am trying to understand why. I could not find any clear answer on that. Any idea?