I have a UIScrollView
which has been subclassed
to get the touch events. There is a UIView inside the UIScrollView
and the UIView
in turn has several subviews.
So basically the structure is UIScrollView
> UIView
> UIView's
.
The UIView's
has been given a tag
so as to detect the view which was tapped.
But the touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
is fired twice whenever I tap the UIView
.
What might have gone wrong?
I subclassed the UIScrollView
as mentioned here : Touches Began.