If you’ve ever wondered how to code gesture recognition for complex shapes I’ve come across a couple of open source libraries that should be a great deal of help. This goes well beyond finger swiping.
This library is based on the $1 gesture recognizer which I remember being discussed quite a bit a few years back because not only did it run efficiently, but allowed you define the templates to recognize complex shapes very easily. The $1 gesture recognizer only recognizes 1 single stroke from the user. The $1 gesture recognizer was later expanded on to become the $N multistroke gesture recognizer.
Brit Gardner has taken the $N gesture recognizer and created an Objective-C implementation of the code.
You can read about complex gesture recognition, and why Brit decided to use the $N gesture recognizer on his site in these posts:
You can find Brit’s Github for the Objective-C $N gesture recognizer here:
Adam Preble has created an implementation of the $1 gesture recognizer which can be found here:
I’ve received e-mails a couple of times over the years asking about how some drawing games were created on the iPhone. If you are looking to make that kind of game this should help give you a head start.