Faz Ya
Faz Ya

Reputation: 1480

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

Upvotes: 1

Views: 742

Answers (2)

mikebob
mikebob

Reputation: 376

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

Upvotes: 2

Jim
Jim

Reputation: 73966

See Creating Custom Gesture Recognizers.

For what it's worth, having to draw a heart to get to your favourites sounds like an abysmal user interface. Don't focus on the potential for the technology so much you forget about the people.

Upvotes: 2

Related Questions