Iphone MFMailComposeViewController中没有可编辑的内容,也没有键盘

Iphone MFMailComposeViewController中没有可编辑的内容,也没有键盘,iphone,mfmailcomposeviewcontroller,Iphone,Mfmailcomposeviewcontroller,我正在启动一个MFMailComposeViewController,如下所示: ShareViewController *shareView = [[ShareViewController alloc] initWithSubject:subject body:body footer:footer]; shareView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; shareView.modalPres

我正在启动一个MFMailComposeViewController,如下所示:

ShareViewController *shareView = [[ShareViewController alloc] initWithSubject:subject        body:body footer:footer];

shareView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
shareView.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:shareView animated:YES];    
init如下所示:

- (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;
}
此时会出现电子邮件窗口,我可以在电子邮件正文周围移动光标。但我无法打开键盘,也无法将光标移动到“收件人”、“抄送:”或“主题:”字段。不知道发生了什么事。这以前是可行的,但我最近做了几次UI更改。”Cancel“按预期解除模式。”“发送”未启用,因为“收件人:”字段中没有收件人


有什么想法吗?

当我覆盖ViewDidDisplay时,我忘了调用[super ViewDidDisplay]。

ShareViewController是MFMailComposeViewController的子类吗?如果是这样的话,我通常会远离它;compose控制器是系统UI的一个黑匣子,不是设计成子类的——尽管这可以实现,但我还是先使用compose控制器,并在初始化后在调用站点设置所有这些属性。