tags:

views:

359

answers:

0

I found this little text on the net:

UIScrollView overrides hitTest method and always returns itself, so that all touch events (touchesBegan, touchesMoved, touchesEnded, touchesCancelled) go into it. Then inside touchesBegan, touchesMoved etc it checks if it's interested in the event, and either handles or passes it on to the inner views.

well, that sounds interesting to me. Could someone tell how this hitTest method could catch a touch event? Where's the difference between using hitTest and touchesBegan, touchesMoved, etc.? I'd like to know how that hitTest thing would look like.