I am drawing a circle in a UIView using the drawRect method. I am using the following code to draw it.
- (void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextAddArc(context, 105, 105, 55, [self convertDegreeToRadian:15.0], [self convertDegreeToRadian:345.0], 0);
CGColorRef black = [[UIColor blackColor] CGColor];
CGContextSetStrokeColorWithColor(context, black);
CGContextStrokePath(context);
}
This gives me a curve from 15 degrees to 345 degrees. So, this curve is drawn from one point to another. I need to get the points of the two edges. How do I get it?