5

I've created an MFMailComposeViewController and am able to display it but once I press the cancel button, the cancel button and send button grey out and the action sheet does not appear. Is there anything I am missing?

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];

And here's a screenshot: Image showing greyed out buttonsSo is there something I'm missing or should I file a bug report?

4

1 回答 1

0

好吧,我发现在 iOS8 SDk 中,当 MFMailComposeViewController 出现时,Finished 事件处理程序会立即触发,并且 MFComposeResultEventArgs Result 设置为 MFMailComposeResult.Cancle。

这可能是一个错误。

于 2014-10-02T08:12:46.050 回答