title: start and end angle of UIBezierPath?
body: <p>I have coded as below for half circle in iOS using <strong>UIBezierPath</strong> and <strong>CAShapeLayer</strong>.</p>
  
  <pre><code> clockWiseLayer = [[CAShapeLayer alloc] init];
  
  CGFloat startAngle = -M_PI_2;
  CGFloat endAngle = M_PI + M_PI_2;
  
  CGFloat width = CGRectGetWidth(imageView.frame)/2.0f + 30;
  CGFloat height = CGRectGetHeight(imageView.frame)/2.0f +50;
  CGPoint centerPoint = CGPointMake(width, height);
  
  float radius = CGRectGetWidth(imageView.frame)/2+10;
  
  clockWiseLayer.path = [UIBezierPath bezierPathWithArcCenter:centerPoint
                                                      radius:radius
                                                  startAngle:startAngle
                                                    endAngle:endAngle
                                                   clockwise:YES].CGPath;
  
  clockWiseLayer.fillColor = [UIColor clearColor].CGColor;
  clockWiseLayer.strokeColor = [UIColor blueColor].CGColor;
  clockWiseLayer.borderColor = [UIColor greenColor].CGColor;
  clockWiseLayer.backgroundColor = [UIColor redColor].CGColor;
  
  clockWiseLayer.strokeStart = 0.0f;
  clockWiseLayer.strokeEnd = 0.5f;
  
  clockWiseLayer.lineWidth = 2.0f;
  clockWiseLayer.borderWidth = 5.0f;
  
  clockWiseLayer.shouldRasterize = NO;
  [self.layer addSublayer:clockWiseLayer];
  </code></pre>
  
  <p>This results as below.</p>
  
  <p><a href="https://i.stack.imgur.com/mPiEg.png"><img src="https://i.stack.imgur.com/mPiEg.png" alt="enter image description here"></a></p>
  
  <p>I want this blue half circle on the opposite side of the World Globe.</p>
  
  <p>It is half Circle, but I want it on the other side, also CounterClockWise.</p>
  
  <p>I am unable to set start and end angle for that, while <strong>clockwise:NO</strong>.</p>
  
  <p>Thanks.</p>