Search code examples
iosdesign-patternsgesture-recognition

recognize pattern on ios


Does anyone know a good touch pattern recognition library? How is it generally done? I would like to have the entire IOS device as an input device. For example, if someone draws a big heart on the screen, we are going to the favorites page. Somehow I need to know someone drew a big heart on the screen.

Thanks, Ross


Solution

  • I found a MultistrokeGestureRecognizer library on GitHub that looks promising. Looks like its a matter of running the Shape Editor and exporting the strokes as a JSON array of points. This should be enough to get you started.

    If you need more resources I would take a look at the two WWDC videos on gesture recognizers from 2010 as mentioned in this SO answer.

    Here's a link to the 2011 WWDC multi-touch video which may be of some help to you also.

    Session 118 - Making the Most of Multi-Touch on iOS