I plan to let the user draw a number form (1 to 9) in the form of a 7-segment display. What is the best way to determine which number was drawn?
I know how to do all the touch tracking and the UIGestureRecogniser stuff - I'm looking for a good logic for this.
So far I have: When the touch moves from 1 half of the segment to the other, select that segment. Once the strokes are finished, check which segments have been highlighted, and decide which number is drawn.
The paths I was thinking about improving: Draw a finger path shape on the screen. If the line crosses the middle of the segment, select it.
Anyone have any tips or better ways to do this? I am open to any suggestion - even if it means giving up all my code and starting from scratch.
ios uigesturerecognizer gesture
Craig
source share