title: Simultaneously dismissing a view controller and then presenting one
body: <p>So I have a VC that i call on when a button is clicked (It's a MFMailComposeViewController) and when the message is sent, It dismisses the ViewController and i want it to present a different one once it's done sending. But instead of doing this it crashes after sending the email every time. i know I'm doing something wrong but i'm not sure what.</p>
  
  <p>Here's my code that dismisses and presents the new one.</p>
  
  <pre><code>- (void) mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error {
  [self dismissViewControllerAnimated:true completion:nil];
  [self presentViewController:_emailConfirmationPage animated:YES completion:nil];}
  </code></pre>
  
  <p>I was thinking that the problem was that I used <code>self</code> but I'm not sure what I use in place of that.</p>