보기에 레이어를 그려야합니다. 그 때문에 나는이 코드를 쓴다.iOS 레이어 위치
arcLayer=[CAShapeLayer layer];
arcLayer.frame=self.circleView.frame;
arcLayer.backgroundColor = [UIColor purpleColor].CGColor;
[self.circleView.layer addSublayer:arcLayer];
하지만이 이미지는 다음 그림과 같이 레이어 위치가 정확한 것은 아닙니다. 녹색 하나는 circleView이고 보라색은 원호 레이어입니다.
'arcLayer.frame = self.circleView.bounds' – user3386109