touchesMoved() メソッドで iOS で描画するためのプログラムを作成しました。
CGContextAddPath(UIGraphicsGetCurrentContext(), path);
CGPathMoveToPoint(path, NULL, lastPoint.x, lastPoint.y);
CGPathAddLineToPoint(path, NULL, lastPoint.x, lastPoint.y);
CGContextDrawPath(UIGraphicsGetCurrentContext(), kCGPathStroke);
描画されたパスをクリアして元のビューに戻すにはどうすればよいですか?