title: instance method presentModalViewController:animated not found
body: <p>I am implementing email composer in app delegate.
  I am not sure why , but i am getting an warning </p>
  
  <blockquote>
    <p>"instance method  presentModalViewController:animated not found"</p>
  </blockquote>
  
  <p>only at the appdelegate,whereas, i am using the the same method in my other viewcontroller, which works smoothly.</p>
  
  <pre><code>  MFMailComposeViewController *mail = [[MFMailComposeViewController alloc] init]; 
    mail.mailComposeDelegate = self; 
  
    if([MFMailComposeViewController canSendMail]) 
    {
       //Setting up the Subject, recipients, and message body.
  
       [mail setToRecipients:[NSArray arrayWithObjects:@"abc@gmail.com",nil]];
       UIImage *pic = [UIImage imageNamed:@"page0.png"];
       NSData *exportData = UIImageJPEGRepresentation(pic ,1.0);
       [mail addAttachmentData:exportData mimeType:@"image/jpeg" fileName:@"Picture.jpeg"];
  
       [mail setSubject:@"dummy text"];
       [mail setMessageBody:@"Please tell us what your concerns are and we will try to fix them" isHTML:NO];
       //Present the mail view controller
       [self presentModalViewController:mail animated:YES]; 
       //release the mail [mail release];
    } 
  </code></pre>
  
  <p><code>[self presentModalViewController:mailer animated:YES];</code> this is giving warning and app gets crashed,when reach here.</p>
  
  <p>Any suggestions.</p>