Hi, i have code in my current navigation controller in which one button for that.... but when i click button mailcomposer appears **but current navigation controller and its view disappears and then it works... how can i avoid that disappearance,anyhelp please **...... - (IBAction)clickedMailButton:(id)sender {
Class mailClass = (NSClassFromString(@"MFMailComposeViewController"));
if (mailClass != nil)
{
// We must always check whether the current device is configured for sending emails
if ([mailClass canSendMail])
{
[self displayComposerSheet];
}
else
{
[self launchMailAppOnDevice];
}
}
else
{
[self launchMailAppOnDevice];
}
}