我有一個問題,希望能得到一些幫助,我得到的初始郵件編輯器加載和工作正常,但我想知道是否有可能說增加多個按鈕,可以調出郵件作曲家,我正在嘗試在我的應用程序中做的事情是讓用戶能夠通過附件通過電子郵件發送文件給自己,但是有沒有辦法讓多個按鈕在被點擊時被郵件編輯器提供該文件。我希望是有道理的提前感謝的人誰幫助郵件編輯器多個按鈕
這是我的.h文件
- (IBAction)Email:(id)sender;
,這是在我的.m文件
- (IBAction)Email:(id)sender
{
if ([MFMailComposeViewController canSendMail])
MFMailComposeViewController *mail = [[MFMailComposeViewController alloc] init];
mail.mailComposeDelegate = self;
[mail setSubject:@"Questions or Concerns"];
NSArray *recipient = [NSArray arrayWithObjects:@"[email protected]", nil];
[mail setToRecipients:recipient];
NSString *body = @"Please Send Your Feedback or any Suggestoins";
[mail setMessageBody:body isHTML:NO];
[self presentViewController:mail animated:YES completion:Nil];
}
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
{
[self dismissViewControllerAnimated:YES completion:nil];
}
是,同樣的方法
但我們需要一些代碼來查看當前的實現是什麼 – 2013-02-12 06:55:38
比較遺憾的是我添加的代碼我用 – user1985904 2013-02-12 07:38:44