title: Can't edit text in UITextField
body: <p>In  my app, when I try to edit (type some text) <code>UITextField</code>,the cursor just blinks but no characters are typed in except BACKSPACE (possible only when I have some initial text in it), RETURN and switching character types. </p>
  
  <p>this is how I declared <code>UITextField</code></p>
  
  <pre><code> txtmail =[[UITextField alloc]init];
              [txtmail setFrame:CGRectMake(288, 51,264, 31)];
              [txtmail setBorderStyle:UITextBorderStyleRoundedRect];
              [txtmail setText:[NSString stringWithFormat:@"%@",appDelegate.Email]];
              [txtmail setFont:[UIFont fontWithName:@"TimesNewRoman" size:14]];
              txtmail.textColor =[UIColor grayColor];
              txtmail.delegate=self;
              [testScroll addSubview:txtmail];
  </code></pre>
  
  <p>in my .h file I have given like this</p>
  
  <pre><code> @interface pot: UIViewController&lt;UITextFieldDelegate&gt;
  {
      UITextField *txtmail;
  }
  </code></pre>