【问题标题】:MFMailComposeViewController isn't let the user input an emailMFMailComposeViewController 不允许用户输入电子邮件
【发布时间】:2011-02-16 02:45:25
【问题描述】:

我在下面配置了一个简单的 MFMailComposeViewController。如果我填充 setToRecipients,一切正常,电子邮件已发送。如果我不填充 setToRecipients,邮件编辑器窗口会弹出,但所有字段仍然不可编辑。

我认为 MFMailComposeViewController 将允许用户在发送之前编辑电子邮件?这可以使用标准控件吗?

- (IBAction) sendEmail
{
    MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
    picker.mailComposeDelegate = self;

    [picker setSubject:[NSString stringWithFormat:@"Receipt Email - %@",[self.labelDate text]]];

    NSString *emailBody = @"This is the message body";

    [picker setMessageBody:emailBody isHTML:NO];

    [self presentModalViewController:picker animated:YES];
    [picker release];   
}

【问题讨论】:

  • 别介意伙计们......我没有辞去父视图的第一响应者>。
  • 如果您不需要答案,请删除它:D

标签: iphone


【解决方案1】:

没关系,伙计们......我没有辞去父视图的第一响应者>。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-19
    • 2015-10-29
    • 2020-09-15
    • 1970-01-01
    • 1970-01-01
    • 2018-08-19
    相关资源
    最近更新 更多