title: textFieldShouldReturn does not get called (textField loaded programmatically)
body: <p>I'm currently loading a -<code>UITextField</code> programmatically and trying to make the keyboard go down once I click on 'Search'.</p>
  
  <p>I declare the <code>-UITextFeild</code> inside the .m file as 
  <code>UITextField *searchTextField;</code></p>
  
  <p>Inside the .h file I do indeed declare the <code>-UITextField</code>'s delegate</p>
  
  <pre><code>@interface firstChannel : UIViewController&lt;LBYouTubePlayerControllerDelegate, UITableViewDelegate,UITableViewDataSource, NSXMLParserDelegate, UITextFieldDelegate, AVPlayerItemOutputPullDelegate&gt;{
  </code></pre>
  
  <p>This is how I add the UITextField programmatically.</p>
  
  <pre><code> searchTextField = [[UITextField alloc] initWithFrame:CGRectMake(10, -26, 300, 30)];
      searchTextField.borderStyle = UITextBorderStyleRoundedRect;
      searchTextField.font = [UIFont fontWithName:@"Heiti TC" size:13];
      searchTextField.autocorrectionType = UITextAutocorrectionTypeNo;
      searchTextField.clearButtonMode = UITextFieldViewModeWhileEditing;
      searchTextField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
      searchTextField.placeholder = @"Search on the Channel";
      searchTextField.borderStyle = UITextBorderStyleNone;;
      searchTextField.textAlignment = UITextAlignmentCenter;
      searchTextField.center = CGPointMake(160, 43);
      searchTextField.textColor = [UIColor colorWithRed:(232.0/255.0) green:(232.0/255.0) blue:(232.0/255.0) alpha:(100.0/100.0)];
      searchTextField.clearButtonMode = UITextFieldViewModeNever;
      searchTextField.returnKeyType = UIReturnKeySearch;
      [searchTextField setKeyboardAppearance:UIKeyboardAppearanceAlert];
      [self.view.window addSubview:searchTextField];
      [searchTextField becomeFirstResponder];
  </code></pre>
  
  <p>I added the delegate inside <code>-viewDidLoad</code></p>
  
  <pre><code>searchTextField.delegate = self;
  </code></pre>
  
  <p>However when I click on "Search" on the keyboard nothing happens. I'm unsure why that's happening I've even debugged it by logging something once you hit returns but nothing happens.</p>