我正在开发一个应用程序,我需要在几个点之间绘制虚线.我试过了
CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound) CGContextSetLineDash(UIGraphicsGetCurrentContext(), 0, lengths, LENGTH_OF_ARRAY)
但我看到的是虚线而不是虚线.我怎样才能得到虚线?
iphone drawing quartz-graphics dotted-line
dotted-line ×1
drawing ×1
iphone ×1
quartz-graphics ×1