2014-10-08 55 views
0

我試圖使用MFMailComposeViewController設置,我設置了所有我想要設置的字段如下:僅須在MFMailComposeViewController

MFMailComposeViewController *message = [[MFMailComposeViewController alloc] init]; 
    [message setMessageBody:@"My message here" isHTML:NO]; 
    [message setToRecipients:[NSArray arrayWithObject:@"[email protected]"]]; 
    [message setSubject:@"Request Info"]; 
    message.mailComposeDelegate = self; 

    // Present mail view controller on screen 
    UINavigationController *navController = (UINavigationController *)[[[[UIApplication sharedApplication] delegate] window] rootViewController]; 
    [navController presentViewController:message animated:YES completion:NULL]; 

然而,當郵件撰寫窗口出現這是唯一的場set是主體而沒有別的,主體,主體都是空的。我錯過了什麼?

回答

0

在帶有郵件帳戶設置的真實設備上進行測試。

+0

工作。 Tahnks! – user3570727 2014-10-08 17:21:03