When a button is clicked, the end user is able to send an email. However the nav bar won't go away, and the email nav bar is hidden underneath the main one. Is there a way to hide the main one? This is the action that is called when the button is pressed:
-(void)goToEmail{
if([MFMailComposeViewController canSendMail]) {
MFMailComposeViewController *mailCont = [[MFMailComposeViewController alloc] init];
mailCont.mailComposeDelegate = self;
[mailCont setSubject:@"Hello!"];
[mailCont setToRecipients:[NSArray arrayWithObject:@"name@email.com"]];
[mailCont setMessageBody:@"Test" isHTML:NO];
[self.navigationController setNavigationBarHidden:YES];
[self presentModalViewController:mailCont animated:YES];
}
}