swift - Receive scrollViewDidScroll and UIGestureRecognizer touch event simultaneously -


i have uiscrollview uipangesturerecognizer attached it.

on drag, want trigger gesture recognizer, or scrollviewdidscroll, or both in single drag. gesture recognizer, however, steals touch event, scrollview can't scroll.

is there way send single touch event scrollviewdidscroll and gesture recognizer?

(i tried subclassing scrollview , overriding gesturerecognizer(uigesturerecognizer, shouldrecognizesimultaneouslywithgesturerecognizer:uigesturerecognizer), no effect, assume because scrollviewdidscroll doesn't rely on gesture recognizer.)

it turns out collectionview has pangesturerecognizer property. problem solved.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -