我正在努力显示UIBezierPath
我在代码中生成的 a,因此在尝试调试它时,我想打印它绘制的坐标。我在任何地方都找不到这种技术。鉴于下面的代码,有人可以分享这个吗?
谢谢
UIBezierPath* beizerPath2 = [UIBezierPath bezierPath];
[beizerPath2 moveToPoint:CGPointMake(0.0, 167)];
[beizerPath2 addLineToPoint:CGPointMake(100, 40)];
[beizerPath2 addLineToPoint:CGPointMake(200, 70)];
[beizerPath2 addLineToPoint:CGPointMake(300, 30)];
[beizerPath2 addLineToPoint:CGPointMake(320, 30)];
[beizerPath2 addLineToPoint:CGPointMake(320, 167)];
[beizerPath2 closePath];
CAShapeLayer *maskLayer = [CAShapeLayer layer];
maskLayer.path = [beizerPath2 CGPath];
//print Bezier/Path co-ordinates here.