views:

13

answers:

1

Does anyone know of any tutorials or sample code that could help me achieve the following in an iPhone app (other than the offical Apple developer videos).

  • A user draws a path on screen
  • The path is compared to an already existing path to see if it matches
  • A match is determined not just by shape but also by starting and ending at the correct point

Essentially tracing a path with your finger. The drawing part isn't too bad at the moment (though pretty jagged if you move your finger fast, not too bothered about that though). The main thing is the matching what you've drawn to something else part.

+1  A: 

Take a look at this:

http://depts.washington.edu/aimgroup/proj/dollar/

Paper describing method is here:

http://faculty.washington.edu/wobbrock/pubs/uist-07.1.pdf

Lou Franco
@Lou Thank you, exactly what I was after, well done that man
roguepixel
And here's an actual implementation of that: http://stackoverflow.com/questions/3352822/drawing-on-iphone/3354704#3354704
iWasRobbed