Start- und Endwinkel von UIBezierPath?

Ich habe wie folgt für Halbkreis in iOS mit @ codie UIBezierPath und CAShapeLayer.

 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];

Dieses Ergebnis ist wie folgt.

Ich möchte diesen blauen Halbkreis auf der gegenüberliegenden Seite des Globus.

Es ist ein Halbkreis, aber ich möchte es auf der anderen Seite, auch CounterClockWise.

Ich kann den Start- und Endwinkel dafür nicht einstellen, währendm uhrzeigersinn: NEIN.

Vielen Dank

Antworten auf die Frage(6)

Ihre Antwort auf die Frage