ios - not getting touches from UIScrollView -
this question has answer here:
- uiscrollview touchesbegan 6 answers
i have subclassed uiscrollview , implemented -(void)touchesbegan:(nsset *)touches withevent:(uievent *)event method in it.
but nothing happens when click or hold scroll view!
edit: need use touchesended method
i think uiscrollview has 2 gesture recognizer. responsible handling touch sequences, swallow touch events.
use scrollview delegate methods handle drag gestures or the
touchesshouldbegin:withevent:incontentview:
method handle scrollview content touches and
touchesshouldcancelincontentview:
to cancel it.
as alternative can manipulate pangesture recognizer of scrollview pass event next responser.
Comments
Post a Comment