I have three views on the window. A UIView contains the UIScrollView,and the UIScrollView contains a UILabel.All these views is 320*460.
Now I want to handle long press event on the UILabel and pass tap event to the UIView.
I rewrite the lable’s touchesEnded: to get the press time.
If the time is short enough, I use [[self nextResponder] touchesBegan:touches withEvent:event] to pass it.
However, even if I rewrite a UIScrollview and add [[self nextResponder] touchesBegan:touches withEvent:event] to it, the UIView can’t recive touchesBegan event.
And, if I set userInteractionEnabled=NO for UIScrollView, the UIView get the touchedBegan,and the UILabel can’t recive it.
How can I get the touch event in the UILabel first and pass it to the UIView if I need.
Thanks.
I understood your question this way.
You have scrollview between UIView and UILabel.