I am adding a line from point to point.
...
[self->path addLineToPoint:[touch locationInView:self]];
//need to check the point(x,y) against another point ??
[self setNeedsDisplay];
...
How to extract the last point?
I am adding a line from point to point.
...
[self->path addLineToPoint:[touch locationInView:self]];
//need to check the point(x,y) against another point ??
[self setNeedsDisplay];
...
How to extract the last point?
UIBezierPath
has a property called currentPoint
.
For more info take a look at the documentation.