I need help making a drawing demo.
When the user draws a line using their finger, the line has directional arrows on both ends. When their finger releases, it draws the line with "?" (question-mark) in center of the line.
Then, when user taps on the "?", it will show a new view and the user can enter a value, and the value is in that line.
And we can add multiple lines on capture-image and also we can delete selected line.
I don't understand how can I start developing these features so please give me an idea or any link, or suggestion to start develop this feature.
You should use a UITapGestureRecognizer
and a UIBezierPath
. Have it so that person taps at one point and then taps at a second point, then make a UIBezierPath between the two points. To get the question mark in the middle you could make it so that the line goes from the first point to (half the distance between point 1 and point 2 - 20pt). And then do the same with the other half of the line (so that you now have a space in the middle of the line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With