Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iphone recognize different shapes with finger movement

I'm developing an application for iPhone, and I want to detect different shapes as my fingers move on iPhone surface. Can anybody help me, how can I detect the different geometric shapes via finger movement or gesture in iPhone sdk.

like image 614
Jane Avatar asked Jan 09 '12 06:01

Jane


1 Answers

You can do it, but it's not an easy task. iPhone SDK provides UIGestureRecognizer class, you may create a subclass that UIGestureRecognizer that recognizes a distinctive gesture or character (in your case).

But there is also another approaches. One of them described by Brit Gardner in his blog. Underlying this approach is the N-Dollar Recognizer based on JavaScript. This guy had done a nice job and now you can use MultistrokeGestureRecognizer-iOS library for detecting symbols and shapes. Of course, this library is not perfect and it use specific way (like JSON) to recognize touches, but it's better than nothing.

Thanks, hope this help someone.

like image 165
beryllium Avatar answered Oct 13 '22 20:10

beryllium