title: Modal Dialog Does Not Dismiss Keyboard
body: <p>I am running into an issue where the keyboard does not get dismissed when leaving a <code>UITextField</code> or <code>UITextView</code> in a <code>UIModalPresentationFormSheet</code>. In addition, I've created a large button to serve as the view's background so if the user taps outside the fields it gets triggered. I am using the same code in a regular view controller, and it works as expected. In the modal view controller it does nothing. Any suggestions would be appreciated.</p>
  
  <pre><code>- (BOOL)textFieldShouldReturn:(id)sender {  
   [titleTextField resignFirstResponder];
   return YES;
  }
  
  - (BOOL)textViewShouldReturn:(id)sender {  
   [synopsisTextView resignFirstResponder];
   return YES;
  }
  
  - (IBAction)textFieldDoneEditing:(id)sender {  
   [sender resignFirstResponder];
  } 
  
  - (IBAction)textViewDoneEditing:(id)sender {  
   [sender resignFirstResponder];
  } 
  
  - (IBAction)backgroundClick:(id)sender {  
   [titleTextField resignFirstResponder];
   [synopsisTextView resignFirstResponder];
  }
  </code></pre>