ios - How to detect a flick gesture using UISwipeGestureRecognizer? -


i heard uiswipegesturerecognizer can used distinguish between slow swipe , fast flick. can't find api tell difference.

do need use uiswipegesturerecognizer, or can use uipangesturerecognizer instead? uipangesturerecognizer gives precise movement data whereas uiswipegesturerecognizer more basic , detects whether or not swipe happened (and in direction).

uipangesturerecognizer has -velocityinview: method returns cgpoint, expressing points per second, vertically , horizontally.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -