title: Super slow lag/delay on initial keyboard animation of UITextField
body: <p>Alright, this problem has been driving me nuts. </p>
  
  <p>It takes roughly 3-4 seconds for the keyboard to pop up after I touch my <code>UITextField</code>. This only occurs on the first time the keyboard pops up since the app launched, afterwards the animation starts instantly.</p>
  
  <p>At first I thought it was problem of loading too many images, or my <code>UITableView</code>, but I just created a brand new project with only a <code>UITextField</code>, and I still experience this problem. I'm using iOS 5, Xcode ver 4.2, and running on an iPhone 4S.</p>
  
  <p>This is my code:</p>
  
  <pre><code>#import "ViewController.h"
  
  @implementation ViewController
  
  - (void)viewDidLoad {
      [super viewDidLoad];
  
      UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(20, 20, 280, 30)];
      textField.borderStyle = UITextBorderStyleRoundedRect;
      textField.delegate = self;
      [self.view addSubview:textField];
  }
  
  @end
  </code></pre>
  
  <p>Is this a common problem for all apps?</p>
  
  <p>Right now, the only way I can make it somewhat better is by having <code>textField</code> become/resign first responder in <code>viewDidAppear</code>, but that doesn't solve the problem entirely - it just loads the delay onto when the view loads instead. If I click on <code>textField</code> immediately when the view loads, I still get the problem; if I wait 3-4 seconds after the view loads before touching the textField, I don't get the delay.</p>