我正在启动一个 MFMailComposeViewController ,如下所示:
ShareViewController *shareView = [[ShareViewController alloc] initWithSubject:subject body:body footer:footer];
shareView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
shareView.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:shareView animated:YES];
初始化看起来是这样的:
- (id)initWithSubject:(NSString *)subject body:(NSString *)body footer:(NSString *)footer{
[super init];
self.navigationBar.barStyle = UIBarStyleBlack;
self.mailComposeDelegate = self;
[self setSubject:subject];
body = [NSString stringWithFormat:@"%@ %@", body, footer];
[self setMessageBody:body isHTML:YES];
return self;
}
电子邮件窗口出现,我可以在电子邮件正文周围移动光标。但我根本无法调出键盘,也无法将光标移动到 To:、CC: 或 Subject: 字段。不知道发生了什么。这以前可以工作,但我最近做了一些 UI 更改。“取消”按预期取消模式。未启用“发送”,因为“收件人:”字段中没有收件人。
有任何想法吗?