UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.editingView.bounds byRoundingCorners:UIRectCornerBottomRight cornerRadii:CGSizeMake(10, 10)];
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
maskLayer.frame = self.editingView.bounds;
maskLayer.path = maskPath.CGPath;
self.editingView.layer.mask = maskLayer;
iOS UIView 切其中某一个圆角
最新推荐文章于 2020-12-29 03:10:20 发布