我想让UITextField只显示底部边框。请参阅下面的设计师图片:
UIBezierPath *path = [UIBezierPath bezierPath];
[path moveToPoint:CGPointMake(150.0, 350.0)];
[path addLineToPoint:CGPointMake(250.0, 209.0)];
CAShapeLayer *shapeLayer = [CAShapeLayer layer];
shapeLayer.path = [path CGPath];
shapeLayer.strokeColor = [[UIColor blueColor] CGColor];
shapeLayer.lineWidth = 3.0;
shapeLayer.fillColor = [[UIColor clearColor] CGColor];
我试过这个但没有得到合适的结果。 有什么建议吗?