I am developing an application in which I need to draw dotted lines between a couple of points. I tried
CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound)
CGContextSetLineDash(UIGraphicsGetCurrentContext(), 0, lengths, LENGTH_OF_ARRAY)
But I see dashed lines instead of dotted lines. How can I get dotted lines instead?