Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Which gesture recognizer to use?

$
0
0

I have a view which consists of small squares -- 7 columns and 7 rows divided up into a grid of squares.

I want the user to be able to swipe a range of squares. So for example their initial touch might start in column 3, row 1 and the downward swipe would end on column 3 row 5. I just need to know the location/range of the swipe so that I can calculate which squares were included.

Is a UISwipeGestureRecognizer the right thing to use? Or would a UIPanGestureRecognizer be better?

Thanks...


Viewing all articles
Browse latest Browse all 204402

Trending Articles