ios - not getting touches from UIScrollView -


this question has answer here:

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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -