title: How to set a single line inside textfield at the bottom?
body: <p><strong>This the code i have used inside textfield category:</strong>
  That line only shown when users touches the textField.</p>
  
  <pre><code> @implementation UITextField (textField)
  
              -(void)textBottomLine:(UITextField *)textField
              {
                  CALayer *border = [CALayer layer];
                  CGFloat borderWidth = 2;
                  border.borderColor = [UIColor colorFromHexString:@"#ffc400"].CGColor;
                  border.frame = CGRectMake(0, textField.frame.size.height - borderWidth, textField.frame.size.width, 4);
                  border.borderWidth = borderWidth;
                  [textField.layer addSublayer:border];
                  textField.layer.masksToBounds = YES;
           }
  </code></pre>
  
  <p>but nothing i got,please anybody help me to find out solution.</p>