0
点赞
收藏
分享

微信扫一扫

2-23 switch、JVM内存模型、垃圾回收机制、this、static、变量的分类

想溜了的蜗牛 02-29 20:00 阅读 2

话不多说,直接上代码 

CAShapeLayer *circleLayer = [[CAShapeLayer alloc] init];
[circleLayer setFillColor:[UIColor clearColor].CGColor];
[circleLayer setStrokeColor:[UIColor redColor].CGColor];
[circleLayer setLineWidth:1.5f];
UIBezierPath *circleBezierPath = [UIBezierPath bezierPathWithArcCenter:CGPointMake(56, 63) radius:31 startAngle:0 endAngle:M_PI * 2 clockwise:YES];
circleLayer.path = circleBezierPath.CGPath;
[self.layer addSublayer:circleLayer];
举报

相关推荐

0 条评论