What is the Best Way To show UITextField with only

2019-06-08 04:50发布

I would like to have UITextField appear only with a bottom border. See the designer's image below: enter image description here

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];

I have Tried This but not Getting Appropriate Results. Any Suggestions ?

0条回答
登录 后发表回答