title: UITextField - resignFirstResponder Query
body: <p>I have an application which has a couple of UITextField present to allow my user to enter their age, and another numerical value.  Ideally, I want the keyboard to bring up the numeric keypad when the TextField is being edited.  At present I have it set to Numer and Punctuation merely to make use of the 'Done' button to dismiss the keyboard as the Numeric pad does not have a done button.</p>
  
  <p>In an attempt to use the Numeric keypad, I have tried to set it to dismiss by tapping the background of my main view.  </p>
  
  <pre><code>-(IBAction)backgroundTapped:(id)sender;
  </code></pre>
  
  <p>I created the above action in my header file.</p>
  
  <pre><code>-(IBAction)backgroundTapped:(id)sender {
      [ageEntry resignFirstResponder];
  }
  </code></pre>
  
  <p>I have expanded on the above method in my implementation file to tell the ageEntry TextField to resignFirstResponder.  I have also changed my main view to a UIControl class and connected the buttonTapped action to the relevant alert through Interface Builder.  Yet when I touch the background nothing happens.</p>
  
  <p>Any ideas?</p>