Complex gesture recognition is a topic that I’ve brought up a number of times and I’ve mentioned ports of the $1 Unistroke gesture recognizer for iOS in the past, and mentioned a library implementing the $P gesture recognizer for iOS a couple of days ago.
Shortly after that post I received a tip about a new iOS port of the $1 Unistroke gesture recognizer by Chris Miles.
This port offers a number of advantages over the previous implementations as mentioned on Chris’s blog including:
– Recognition of multiple gestures
– Standard UIGestureRecognizer callback for success
– Template paths defined by UIBezierPath objects
– Optional callbacks for tracking path drawing and recognition failure
– Configurable minimum recognition score threshold
– Option to disable rotation normalisation
– Option to enable the Protractor method for potentially faster recognition
You can read about CMUnistrokeGesture on Chris’s blog here.
You can find CMUnistrokeGesture on Github here.
A nice example app is included demonstrating a wide variety of gestures.
Original article: An Improved Implementation of the $1 Unistroke Gesture Recognizer For iOS
©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.





