problem in apple's MFMailComposeViewController
<p>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
{</p>

<pre><code>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];
}
</code></pre>

<p>}</p>
