-5

I am developing an app in which i have to send email using MFMailComposeViewController to multiple user selecting from contact list.When I send email once it goes but when i do it second time I get following warning: Attempt to present on while a presentation is in progress!.Please let me know whats the issue here.

Thanks.

user1626842
  • 29
  • 1
  • 5
  • i am sure with a quick search for this error message (which is quite self-explanatory) you can find a solution here. – MrBr Jun 17 '13 at 07:35
  • 2
    Update the question with your code and the complete line of warning you get. – DD_ Jun 17 '13 at 07:39

1 Answers1

1

A kind of communication issue between parent-child .That means you are trying to present MFMailComposeViewController, without dismissing the previous. Well, I can't explain further without looking at your code.

DD_
  • 7,230
  • 11
  • 38
  • 59
  • -(void)mail_inquiry { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; if([MFMailComposeViewController canSendMail]) { picker.mailComposeDelegate = self; [picker setSubject:@"Muv Muv Game invitation"]; NSString *emailBody; emailBody = [NSString stringWithFormat:@""]; [picker setMessageBody:emailBody isHTML:YES]; [self presentModalViewController:picker animated:YES]; [picker release]; } } – user1626842 Jun 17 '13 at 07:47
  • 1
    Why don't you add this in your question?? Add this there, will help – DD_ Jun 17 '13 at 07:52
  • -(void)mail_inquiry { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; if([MFMailComposeViewController canSendMail]) { picker.mailComposeDelegate = self; [picker setSubject:@"Muv Muv Game invitation"]; NSString *emailBody; emailBody = [NSString stringWithFormat:@""]; [picker setMessageBody:emailBody isHTML:YES]; [self presentModalViewController:picker animated:YES]; [picker release]; } } – – user1626842 Jun 17 '13 at 08:04
  • AND I am getting following issue: on while a presentation is in progress! – user1626842 Jun 17 '13 at 08:08
  • 1
    @user1626842 Your comments should be added to the question not here. -1 to the question as this is information that is need to help and you have failed to include it. – Popeye Jun 17 '13 at 08:21