Some time ago I mentioned the $1 and $N gesture recognizer libraries that have been ported to the iOS platform. These libraries make it easy to recognize complex gestures made from multiple and single strokes.
Today I came across another gesture recognizer called the $P point cloud Objective-C gesture recognizer. The advantage of this algorithm is that it can handle both single and multistroke gestures efficiently.
As the homepage states:
Although about half of $P’s code is from $1, unlike both $1 and $N, $P does not represent gestures as ordered series of points (i.e., strokes), but as unordered point-clouds. By representing gestures as point-clouds, $P can handle both unistrokes and multistrokes equivalently and without the combinatoric overhead of $N.
Here’s an image from the homepage showing the demo app in action:
You can read more about $P gesture recognizer and download it from the homepage here.
A great project for handling different types of complex gestures.
Original article: An Efficient Open Source iOS Multistroke And Single Stroke Complex Gesture Recognition Library
©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.






