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
Post a Comment