title: Draw circle with UIBezierPath
body: <p>I'm trying to draw a circle using UIBezierPath addArcWithCenter method :</p>
  
  <pre><code>UIBezierPath *bezierPath = 
    [UIBezierPath bezierPathWithOvalInRect:CGRectMake(0., 0., 100., 100.)];
  
  [bezierPath addArcWithCenter:center 
                        radius:0. 
                    startAngle:0 endAngle:2 * M_PI clockwise:YES];
  
  CAShapeLayer *progressLayer = [[CAShapeLayer alloc] init];
  
  [progressLayer setPath:bezierPath.CGPath];
  [progressLayer setStrokeColor:[UIColor colorWithWhite:1. alpha:.2].CGColor];
  [progressLayer setFillColor:[UIColor clearColor].CGColor];
  [progressLayer setLineWidth:.3 * self.bounds.size.width];
  [progressLayer setStrokeStart:_volumeValue/100.];
  [progressLayer setStrokeEnd:volume/100.]; // between 0 and 100
  
  [_circleView.layer addSublayer:progressLayer];
  </code></pre>
  
  <p>but what I get is the following :</p>
  
  <p><img src="https://i.stack.imgur.com/Uzs0D.png" alt="enter image description here"></p>
  
  <p>I tried to play with the different parameters but no luck</p>
  
  <p>Thank you</p>
  
  <p><strong>UPDATE :</strong></p>
  
  <p>I'm sorry if I didn't explain what I'm trying to do:</p>
  
  <p>*The background circle is drawed using :</p>
  
  <pre><code>[UIBezierPath bezierPathWithOvalInRect:CGRectMake(0., 0., 100., 100.)]
  </code></pre>
  
  <p>*I'm trying to draw the red circle step by step using bezierPathWithOvalInRect 
  between 2 values : _volumeValue and volume</p>
  
  <p>But I can't get a perfect circle, instead I get the horizontale part after certain value.</p>
  
  <p><img src="https://i.stack.imgur.com/1lH42.png" alt="enter image description here"> </p>