次のような矢印を描きたいと思います。
CGPoint を使用してこのようなことを行うにはどうすればよいですか?
UIView サブビューの -drawRect メソッドで:
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextMoveToPoint(ctx, point1.x, point1.y);
CGContextAddLineToPoint(ctx, point2.x, point2.y);
CGContextAddLineToPoint(ctx, point3.x, point3.y);
CGContextAddLineToPoint(ctx, point1.x, point1.y);
CGContextClosePath(context);
CGContextStrokePath(ctx);