IOS: Is possible to rounder radius with different value in each corner
问题 I want to rounder my UIView with the value like that top-left-radius:20; bottom-right-radius:5; bottom-left-radius:5; and top-right-radius:10; //For rounder `UIRectCornerBottomLeft & UIRectCornerBottomRight` I use UIBezierPath *maskPath0 = [UIBezierPath bezierPathWithRoundedRect:self.messageView.bounds byRoundingCorners:(UIRectCornerBottomLeft | UIRectCornerBottomRight) cornerRadii:CGSizeMake(5.0, 5.0)]; CAShapeLayer *maskLayer0 = [[CAShapeLayer alloc] init]; maskLayer0.frame = self.bounds;