How to have a UISwipeGestureRecognizer AND UIPanGestureRecognizer work on the same view
        Posted  
        
            by 
                Shizam
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Shizam
        
        
        
        Published on 2011-02-24T23:24:26Z
        Indexed on 
            2011/02/24
            23:24 UTC
        
        
        Read the original article
        Hit count: 318
        
How would you setup the gesture recognizers so that you could have a UISwipeGestureRecognizer and a UIPanGestureRecognizer work at the same time? Such that if you touch and move quickly (quick swipe) it detects the gesture as a swipe but if you touch then move (short delay between touch & move) it detects it as a pan?
I've tried various permutations of requireGestureRecognizerToFail and that didn't help exactly, it made it so that if the SwipeGesture was left then my pan gesture would work up, down and right but any movement left was detected by the swipe gesture.
© Stack Overflow or respective owner