沒設(shè)置之前的效果
// 單邊圓角或者單邊框
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:_testLab.bounds byRoundingCorners:(UIRectCornerTopLeft | UIRectCornerBottomRight) cornerRadii:CGSizeMake(5,5)];
//圓角大小 CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
maskLayer.frame = _testLab.bounds;
maskLayer.path = maskPath.CGPath;
_testLab.layer.mask = maskLayer;