我对iPhone开发非常新颖。 在我的应用程序中,我想在单击按钮时使用MFMailComposeViewController发送电子邮件。如何使用MFMailComposeViewController发送电子邮件
我该如何做到这一点? 我使用下面的代码。
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
[controller setSubject:@"Email App"];
[controller setMessageBody:@"Sample email app" isHTML:NO];
[self presentModalViewController:controller animated:YES]; // App crash in this line.
[controller release];
其显示的警告:
'ImportingDocumentAppDelegate' may not respond to '-presentModalViewController:animated:'.
感谢.....
谢谢Saadnib。 – Arun