我试图从Xcode 6中打开iOS 8中的电子邮件镇静,但得到一个错误。 如果我从Xcode 5尝试,相同的代码工作正常。后来我从苹果开发者门户网站下载了一个示例代码: https://developer.apple.com/library/content/samplecode/MessageComposer/Introduction/Intro.html 但结果是一样的。 有没有什么,或者一些设置,我错过了优化Xcode 6的代码 这里是代码:在我的button行动 MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@"Hello from California!"]; // Set up recipients NSArray *toRecipients = [NSArray arrayWithObject:@"first@example.com"]; NSArray *ccRecipients = [NSArray arrayWithObjects:@"second@example.com", @"third@example.com", nil]; NSArray *bccRecipients = [NSArray arrayWithObject:@"fourth@example.com"]; [picker setToRecipients:toRecipients]; [picker setCcRecipients:ccRecipients]; [picker setBccRecipients:bccRecipients]; // Attach an image to […]