iOS UIView 切其中某一个圆角

来源:互联网 发布:html5 java 编辑:程序博客网 时间:2024/06/05 19:44

    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;


0 0
原创粉丝点击