Quantcast
Channel: Can you attach a UIGestureRecognizer to multiple views? - Stack Overflow
Viewing all articles
Browse latest Browse all 14

Answer by AnkitRox for Can you attach a UIGestureRecognizer to multiple views?

$
0
0

Override class by '<UIScrollViewDelegate>'

And use this method in .m class:

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer{    return YES;}

This method will help you to enable multiple swipe on a single view..


Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>