自定义圆角

UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:apply.bounds byRoundingCorners:UIRectCornerTopRight | UIRectCornerBottomRight cornerRadii:CGSizeMake(5, 5)];

CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];

maskLayer.frame = apply.bounds;

maskLayer.path = maskPath.CGPath;

apply.layer.mask = maskLayer;      自定义圆角

你可能感兴趣的:(自定义圆角)