title: dismiss modal view with return key
body: <p>I got one UITextField on my Modal view controller.
  When "Done" key is clicked, i want to dismiss the modal view.
  i don't know where should i add below code to dismiss modal view.
  Thanks in advance for any help.</p>
  
  <pre><code>[self.parentViewController dismissModalViewControllerAnimated:YES];
  </code></pre>