I am using the following method to round specific corners of uitextfield. However, it has the effect of erasing the border at the rounded corner. Can anyone suggest way to do this without erasing border? Thanks in advance for any suggestions.
-(void)roundBottomCornersOfView: (UITextField*) view by: (NSInteger) radius {
CGRect rect = view.bounds;
UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect
byRoundingCorners:UIRectCornerTopLeft |UIRectCornerTopRight
cornerRadii:CGSizeMake(radius, radius)];
CAShapeLayer *layers = [CAShapeLayer layer];
layers.frame = rect;
layers.path = path.CGPath;
view.layer.mask = layers;
}
