drawRect メソッドを使用して UIView に円を描いています。次のコードを使用して描画しています。
- (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);
}
これにより、15 度から 345 度までの曲線が得られます。したがって、この曲線はある点から別の点に描かれています。2 つのエッジのポイントを取得する必要があります。どうすれば入手できますか?