2
當用戶發送郵件時,我遇到了一些問題。有些時候郵件沒有郵件內容(電子郵件正文),即使用戶輸入了郵件內容。郵件內容不會僅顯示一次(對於10封郵件進入我的收件箱,2封或3封郵件沒有內容在電子郵件正文中)請引導我爲什麼發生?郵件在iPhone中使用MFMailComposeViewController時沒有消息內容
這裏我的代碼,
- (void)viewDidLoad {
[self displayComposerSheet];
}
-(void) displayComposerSheet
{
picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
if ([MFMailComposeViewController canSendMail]) {
[picker setToRecipients:[NSArray arrayWithObjects:@"[email protected]",nil]];
[picker setSubject:@"ShoutOuts"];
}
[self presentModalViewController:picker animated:YES];
}
請幫助我。
謝謝!