Linked Questions

Popular Questions

One sided Corner radius using UIBezierPath bezierPathWithRoundedRect: getting distorted corners.

enter image description here

Used the following code,

UIBezierPath *maskPath1 = [UIBezierPath bezierPathWithRoundedRect:CGRectInset(view.bounds, 0.5, 0.5) byRoundingCorners:corners cornerRadii:CGSizeMake(6.0, 6.0)];
CAShapeLayer *maskLayer1 = [[CAShapeLayer alloc] init];
maskLayer1.frame = view.bounds;
maskLayer1.path  = maskPath1.CGPath;
maskLayer1.strokeColor = view.layer.borderColor;
maskLayer1.lineJoin = kCALineJoinRound;
view.layer.mask = maskLayer1;
view.layer.masksToBounds = YES;
[view setNeedsDisplay];

the corner radius getting distorted after applied. Side note : Also the border between the views getting thicken when I add the border width to the views, since the border of view getting merged. Any solution or workaround for this is more helpfull.

Related Questions