///绘画圆弧
- (void)bezierImage {
UIBezierPath *maskPath = [UIBezierPath bezierPath];
[maskPath moveToPoint:CGPointMake(0, 40)];
[maskPath addQuadCurveToPoint:CGPointMake(App_WIDTH, 40) controlPoint:CGPointMake(App_WIDTH/2.0, -20)];
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
maskLayer.frame = CGRectMake(0, 0, App_WIDTH, 40);
maskLayer.path = maskPath.CGPath;
self.titleBGView.layer.mask = maskLayer;
}
如图: