UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:label.bounds byRoundingCorners:UIRectCornerTopLeft|UIRectCornerBottomLeft cornerRadii:CGSizeMake(10, 10)]; // UIRectCornerBottomRight通过这个设置
CAShapeLayer *maskLayer = [CAShapeLayer layer];
maskLayer.frame = label.bounds;
maskLayer.path = maskPath.CGPath;