0
我从iPhone应用程序发送电子邮件。电子邮件页面弹出确定,我点击发送按钮,iPhone播放一个whoosh声音,电子邮件实际到达收件人。iPhone在拨打电子邮件后没有回到应用程序发送
不幸的是,邮件对话框仍然没有响应,唯一的选择 - 点击主页按钮 - 杀死应用程序。
是否还有其他需要指定关闭eMailMessage视图?
MFMailComposeViewController *eMailMessage;
NSArray *toAddress;
if ([MFMailComposeViewController canSendMail]) {
toAddress = [NSArray arrayWithObject:@"[email protected]"];
eMailMessage = [[MFMailComposeViewController alloc] init];
[eMailMessage setToRecipients:toAddress];
[eMailMessage setSubject:@"Notification"];
[eMailMessage setMessageBody:@"Performed by ..." isHTML:NO];
[self presentModalViewController:eMailMessage animated:YES];
[eMailMessage release];
}
嗨汤姆 - 它本来如果你说:“设置setMailComposeDelegate”更准确,但我设法的工作,到最后。谢谢。 – Bill 2010-06-06 00:13:42
对不起(有时候我会假设当我没有转向非编程思维时,人们会知道我在说什么。 – 2010-06-06 00:30:19