重置UIBezierPath虚线为普通直线

4

我知道UIBezierPath- (void)setLineDash:(const CGFloat *)pattern count:(NSInteger)count phase:(CGFloat)phase方法可以绘制虚线。

但是在编程中如何将其重置为普通线?

Translated:

我知道UIBezierPath- (void)setLineDash:(const CGFloat *)pattern count:(NSInteger)count phase:(CGFloat)phase方法可以绘制虚线。

但是在编程中要怎样将它重置为实线呢?

1个回答

9
这将为您完成任务:[instance setLineDash:nil count:0 phase:0];

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接