I want to be able to draw straight lines on my iPad screen using an UIBezierPath
. How would I go about this?
What I want to do is something like this: I double tap on the screen to define the start point. Once my finger is above the screen the straight line would move with my finger (this should happen to figure out where I should put my next finger so that it will create a straight line). Then, if I double tap on screen again the end point is defined.
Further, a new line should begin if I double tap on the end point.
Are there any resources available that I can use for guidance?
UIBezierPath Class Reference
EDIT
I'm not writing any Minority Report-esque camera magic code without monetary compensation.