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; 自定义圆角










网友评论