1

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 ?

Yurii
  • 4,811
  • 7
  • 32
  • 41
Asmi237
  • 33
  • 8
  • Could you show the result in contrast to what do you want? If you want to underline the text, couldn't you use `NSAttributedString`? – Larme Sep 22 '14 at 14:21
  • 1
    Try this: http://stackoverflow.com/questions/21515451/draw-a-line-with-a-calayer – Larme Sep 23 '14 at 10:05

0 Answers0