02Draw Circle
suggest changeCAShapeLayer *circle = [CAShapeLayer layer];
[circle setPath:[[UIBezierPath bezierPathWithOvalInRect:CGRectMake(100, 100, 150, 150)] CGPath]];
[circle setStrokeColor:[[UIColor blueColor] CGColor]];
[circle setFillColor:[[UIColor clearColor] CGColor]];
[[self.view layer] addSublayer:circle];
![](/essential/ios/img/ed090a0bf6d8eaf1dee13da33b35a22f09b6351c.png)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents