title: How to dismiss popovers in iOS 5?
body: <p>I have a <strong>PatientTableViewController</strong> in the master side of the iPad that has a button for Adding a new patient. It transitions to this <strong>NewPatientViewController</strong> via a <em>popover segue</em>.</p>
  
  <p>In the <strong>NewPatientViewController</strong> I have a Done button that delegates back to the <strong>PatientTableViewController</strong>:</p>
  
  <pre><code>- (void)newPatientViewController:(NewPatientViewController *)sender withZipCode:(NSNumber *)zipCode andFirstName:(NSString *)firstName andLastName:(NSString *)lastName
  {
      [self dismissViewControllerAnimated:YES completion:NULL];
      [self dismissModalViewControllerAnimated:YES];
      [sender dismissModalViewControllerAnimated:YES];
      [sender dismissViewControllerAnimated:YES completion:NULL];
  }
  </code></pre>
  
  <p>None of the methods I tried above work. However, if I use a Modal segue, everything works fine. Wat?</p>