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 に答える