title: Text is not properly visible in UITextField
body: <pre><code>UITextField *theLastNameTF = [[UITextField alloc]init];
  theLastNameTF.borderStyle = UITextBorderStyleNone;
  theLastNameTF.font = [UIFont fontWithName:@"Helvetica-neue"  size:24.0];
  theLastNameTF.textColor = [UIColor grayColor];
  theLastNameTF.textAlignment = NSTextAlignmentLeft;
  [theScrollView addSubview:theLastNameTF];
  </code></pre>
  
  <p>I'm creating a textfield using the above code.I need to show a line under the textfield,so i'm adding a gray coloured UILabel to text field.</p>
  
  <pre><code>-(void)addLineToTextField:(UITextField *)theTextfield
  {
      UILabel *theSeparatorLine = [[UILabel alloc]initWithFrame:CGRectMake(0, theTextfield.frame.size.height-0.5, theTextfield.frame.size.width, 0.5)];
      theSeparatorLine.frame = CGRectIntegral(theSeparatorLine.frame);
      theSeparatorLine.autoresizingMask = UIViewAutoresizingFlexibleWidth;
      theSeparatorLine.backgroundColor = kCS_LightGrayColor;
      [theTextfield addSubview:theSeparatorLine];
  
      theSeparatorLine = nil;
  }
  </code></pre>
  
  <p>I'm facing a issue in textfield,while entering texts,the text are half visible and cursor is not moving towards left of text.</p>
  
  <p>Please refer the image,I have entered "arun... arun 123",as expected the cursor should be at left of 123,but the cursor is not moving further.</p>
  
  <p><img src="https://i.stack.imgur.com/4vL96.png" alt="enter image description here"></p>
  
  <p>How can i fix this this?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>This code is to reframe the UI
  (call layoutViewForCurrentorientation () inside orientation change method)</p>
  
  <pre><code>-(void)layoutViewForCurrentorientation
  {
      if ([[UIApplication sharedApplication]statusBarOrientation] == UIInterfaceOrientationPortrait) {
          [self potraitUI];
      }
      else
      {
          [self landscapeUI];
      }
  }
  </code></pre>
  
  <p>If i remove the line <code>textField.font = [UIFont fontWithName:@"Helvetica-neue" size:24.0];</code> .I issue is resolved but i need bigger font in textfield.</p>