iOS MFMailComposeViewController并从联系人卡片获取用户名 [英] iOS MFMailComposeViewController and getting users Name from contact card
本文介绍了iOS MFMailComposeViewController并从联系人卡片获取用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想获得我卡的名称,所以当我创建邮件窗口与MFMailComposeViewController
I want to get the "Me" card's Name so when i create the mail window with MFMailComposeViewController
我可以
MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init];
mailer.mailComposeDelegate = self;
[mailer setSubject:@"Suggestion: from (Name of Person)"];
基本上用联系人卡片上的姓名代替(姓名)。
Basically substitute the (Name of Person) with the name on their contact card.
推荐答案
您不能从iOS SDK获取Me卡。有一个我
方法用于Mac ,但不适用于iOS。如果该人的姓名将在发件人:领域中,则将其添加到主题行中有什么价值?
You can't get the "Me" card from the iOS SDK. There's a me
method for the mac, but not for iOS. If the name of the person will be in the From: field, what value is there in adding it to the subject line?
这篇关于iOS MFMailComposeViewController并从联系人卡片获取用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文