取消按钮在MFMailComposeViewController - iOS 8中不执行任何操作

时间:2014-06-21 01:19:57

标签: ios ios8 mfmailcomposer cancel-button

我已经创建了一个MFMailComposeViewController并且能够显示它但是一旦我按下取消按钮,取消按钮和发送按钮就会变灰并且不显示操作表。有什么我想念的吗?

MFMailComposeViewController *m = [[MFMailComposeViewController alloc] init];
[m setToRecipents:@[@"abc@example.com"]];
[m setSubject:@"Subject"];
[m setMessageBody:@"..." isHTML:YES];
[m setMailComposeDelegate:self];
[self presentViewController:m animated:YES completion:nil];

这是一个截图: Image showing greyed out buttons那么我有什么遗漏或者我应该提交错误报告吗?

1 个答案:

答案 0 :(得分:0)

我发现在iOS8 SDk中显示MFMailComposeViewController时,Finished事件处理程序立即触发,MFComposeResultEventArgs Result设置为MFMailComposeResult.Cancle。

这可能是一个错误。