gpt4 book ai didi

iphone - 如何在 iPhone 应用程序的 Composer 表中添加 vcardfile

转载 作者:行者123 更新时间:2023-12-03 19:20:43 25 4
gpt4 key购买 nike

在邮件表中我可以添加图像,但我无法附加 vcard 文件

MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
[picker addAttachmentData:ExportVCF mimeType:@"text/x-vcard"
fileName:@ "JOHNSMITH.vcf"];

但是当我发送邮件时我没有收到附件

最佳答案

来自 MFMailCompserViewController 的文档:

The MIME type of the specified data. (For example, the MIME type for a JPEG image is image/jpeg.) For a list of valid MIME types, see http://www.iana.org/assignments/media-types/. This parameter must not be nil.

如果您查看该链接,您可以看到所有有效的 MIME 类型,并且 text/x-vcard 未列出。我认为这意味着邮件编辑器 View Controller 不允许您附加具有无效(在它看来)MIME 类型的文件。

关于iphone - 如何在 iPhone 应用程序的 Composer 表中添加 vcardfile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2200007/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com