gpt4 book ai didi

iOS MFMailComposeViewController 并从名片中获取用户名

转载 作者:行者123 更新时间:2023-11-28 22:47:57 25 4
gpt4 key购买 nike

我想获取“我”卡片的名称,所以当我使用 MFMailComposeViewController 创建邮件窗口时

我可以

MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init];
mailer.mailComposeDelegate = self;
[mailer setSubject:@"Suggestion: from (Name of Person)"];

基本上将(人名)替换为联系人名片上的姓名。

最佳答案

您无法从 iOS SDK 获取“我”卡片。有一个 me 方法 for the mac ,但不适用于 iOS。如果此人的姓名将出现在发件人:字段中,将其添加到主题行有什么值(value)?

关于iOS MFMailComposeViewController 并从名片中获取用户名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12711085/

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