CAShapeLayer *layer = [[CAShapeLayeralloc]init];
UIBezierPath *originPath = [UIBezierPathbezierPath];
//起始中心点改一下
[originPath moveToPoint:CGPointMake(200,200)];
//顺和逆交叉的相互抵消
[originPath addArcWithCenter:CGPointMake(200,200)radius:40startAngle:M_PI_2endAngle:M_PIclockwise:NO];
[originPath addArcWithCenter:CGPointMake(200,200)radius:10startAngle:M_PIendAngle:M_PI_2clockwise:YES];
[originPath closePath];
layer.fillColor = [UIColorredColor].CGColor;//填充颜色
layer.path = originPath.CGPath;
[self.view.layeraddSublayer:layer];