Hello! Trying to make rounded edges at UIView, here’s how I do it.
-(void)makeRoundedCornerRadius:(RoundedCorner)side withRadius:(CGFloat)radius forView:(UIView*)view{ UIBezierPath *maskPath; if (side == RoundedCornerTOP){ maskPath = [UIBezierPath bezierPathWithRoundedRect:view.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(radius, radius)]; } else if (side == RoundedCornerLEFT){ maskPath = [UIBezierPath bezierPathWithRoundedRect:view.bounds byRoundingCorners:UIRectCornerTopLeft| UIRectCornerBottomLeft cornerRadii:CGSizeMake(radius, radius)]; } else if (side == RoundedCornerRIGHT){ maskPath = [UIBezierPath bezierPathWithRoundedRect:view.bounds byRoundingCorners:UIRectCornerBottomRight| UIRectCornerTopRight cornerRadii:CGSizeMake(radius, radius)]; } else if (side == RoundedCornerBOTTOM){ maskPath = [UIBezierPath bezierPathWithRoundedRect:view.bounds byRoundingCorners:UIRectCornerBottomLeft| UIRectCornerBottomRight cornerRadii:CGSizeMake(radius, radius)]; } CAShapeLayer *maskLayer = [CAShapeLayer new]; maskLayer.frame = view.bounds; maskLayer.path = maskPath.CGPath; view.layer.mask = maskLayer; } In this case, only the left corners are rounded, and on the right ones this does not apply. What to do?