0
這裏是我的代碼:MFMailComposeViewControllerDelegate setMessageBody問題
if (!_mail) {
_mail = [[MFMailComposeViewController alloc] init];
_mail.mailComposeDelegate = self;
CGRect mailRect = _mail.view.frame;
mailRect.size.height = self.view.frame.size.height;
mailRect.size.width = self.view.frame.size.width;
_mail.view.frame = mailRect;
_mail.view.backgroundColor = [UIColor whiteColor];
}
NSString *messageBody = @"text"
[_mail setSubject:@"Book Order"];
[_mail setMessageBody:messageBody isHTML:YES];
[self.view addSubview:_mail.view];
這個消息體未設置後。無論這個問題。爲什麼?你可以幫我嗎?