Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reset UIBezierPath dashed line to normal line

I know UIBezierPath's - (void)setLineDash:(const CGFloat *)pattern count:(NSInteger)count phase:(CGFloat)phase method can draw dashed lines.

But how to reset it to normal line in programming?

like image 222
Raptor Avatar asked Jan 18 '23 18:01

Raptor


1 Answers

This will do it for you: [instance setLineDash:nil count:0 phase:0];

like image 155
auibrian Avatar answered Jan 31 '23 08:01

auibrian