title: Return Key Text Field? - iPhone SDK
body: <p>I've been searching the web for a really long time, and I can't get this to work. On my text field I have, when I click on it and then press done or return it won't go away. I've done all the steps for every single tutorial but I still can't get it to work. I'm on firmware 3.1.2, but anyway here is the code in my ViewController.m:</p>
  
  <pre><code>- (void)viewDidLoad {
  
      [super viewDidLoad];
  
      blah.delegate = self;
      blah.returnKeyType = UIReturnKeyDone;
  
  }
  
  - (BOOL)blahShouldReturn:(UITextField *)blah{
  
      [blah resignFirstResponder];
      return YES;
  }
  </code></pre>
  
  <p>viewcontroller.h:</p>
  
  <pre><code>@interface BlahViewController : UIViewController &lt;UITextFieldDelegate&gt; {
      IBOutlet UITextField *blah;
  
  }
  </code></pre>
  
  <p>These are just cut outs from the files. Anyway can anyone help me? I can't get rid of the keyboard when I click on it...</p>
  
  <p>Thanks,</p>
  
  <p>Kevin</p>