私は次のように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;
}
メールウィンドウが表示され、メールの本文上でカーソルを移動できます。しかし、キーボードを表示したり、カーソルをTo:、CC:、またはSubject:フィールドに移動したりすることはできません。何が起こっているのか分かりません。これは以前は機能していましたが、最近いくつかのUIを変更しました。「キャンセル」は、期待どおりにモーダルを閉じます。To:フィールドに受信者がいないため、「送信」は有効になっていません。
何か案は?