0

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?

jdl
  • 6,151
  • 19
  • 83
  • 132

1 Answers1

2

UIBezierPath has a property called currentPoint.

For more info take a look at the documentation.

Artal
  • 8,933
  • 2
  • 27
  • 30