I am drawing a line using UIBezierPath
[path moveToPoint:CGPointMake(xco2, yco2)];
[path addLineToPoint:CGPointMake(xco, yco)];
CAShapeLayer *shapeLayer = [CAShapeLayer layer];
shapeLayer.path = [path CGPath];
shapeLayer.strokeColor = [[UIColor whiteColor] CGColor];
shapeLayer.lineWidth = 3.0;
shapeLayer.fillColor = [[UIColor clearColor] CGColor];
[self.view.layer addSublayer:shapeLayer];
this is the code snippet by which I am drawing lines , but using this code I can only able to draw solid lines , but my client need many customized line like dotted lines , dashed lines etc and other customized lines . I am new in Xcode and I need help to do this