title: UIAlertView with textfield: how to dismiss if RETURN is pressed and how to hide keyboard if dismissed?
body: <p>I have customized UIAlertView a bit. My implementation inherits from UIAlertView and adds a textfield to it. If the textfield is tapped, the iPad's keyboard shows up.
  Would I would like to achieve in additon however:</p>
  
  <ul>
  <li>If the user presses "OKAY" in the alert view, the keyboard does not go away. How can I realize that?</li>
  <li>The on the keyboard "RETURN" is pressed, I would like to dismiss the alert view (and of course hide the keyboard). Also here: how the heck..?</li>
  </ul>
  
  <p>The code of my custom alert view can be seen here: <a href="http://www.wildsau.net/post/2011/01/28/iOS-UIAlertView-with-a-UITextField-a-MonoTouch-implementation.aspx" rel="nofollow">http://www.wildsau.net/post/2011/01/28/iOS-UIAlertView-with-a-UITextField-a-MonoTouch-implementation.aspx</a></p>
  
  <p>Note that it is MonoTouch but any solution working for ObjC, I will be able to translate.</p>