الخميس، 26 ديسمبر 2013

How to get last point of a CGPAth

I want to get the last point ofa CGPath.

CGMutablePAthRef path = CGPathCreateMutable();CGPathMoveToPoint(path,p1.x,p1.y);CGPathAddCurveToPoint(path,c1.x,c1.y,c2.x,c2.y,c3.x,c3.y);

I want to know the the co-ordinates of last point by processing path I tried CGPathGetCurrentPoint but it gives P1 I tried CGPathApply and kCGPathElementCloseSubpath but it also give me P1


View the original article here

ليست هناك تعليقات:

إرسال تعليق