ios - responder chain goes subview to superview, what about scrollview? -
from apple doc subview(near screen) gets handle touch event first superviews.
on other hand, views added scroll view subview scroll view handles touch detect swipes first.
can treat scrollview case special case?
don't forget part:
if hit-test view cannot handle event, event travels responder chain described in “responder objects , responder chain” until system finds view can handle it.
if sub-view can't handle it, passed uiscrollview
.
Comments
Post a Comment