Wednesday, 21 August 2013

Draw a Pie in Objective C

Draw a Pie in Objective C

I have drawn a arc in Objective C with the following code
[newPath appendBezierPathWithArcWithCenter:center radius:radius
startAngle:startAngle endAngle:endAngle];
Now I want to draw two lines from center to both the ends of arc. How do I
do that? One side I can draw with the following code:
[newPath lineToPoint:center];
But how about the other side.

No comments:

Post a Comment