title: UIView notification when modal UIImagePickerController is dismissed?
body: <p>Is there a way to call code when a modal view is finished dismissing?</p>
  
  <p>EDIT:</p>
  
  <p>I'm sorry, I didn't clarify earlier. I'm trying to dismiss a UIImagePickerController and then show a MFMailComposeViewController and attach the image data to the email. When I try to call</p>
  
  <p><code>[self presentModalViewController: mailController]</code> </p>
  
  <p>right after</p>
  
  <p><code>[self dismissModalViewController];</code></p>
  
  <p>I get errors and such. </p>