iOS MFMailComposeViewController and getting users Name from contact card

纵饮孤独 提交于 2019-12-11 18:05:14

问题


I want to get the "Me" card's Name so when i create the mail window with MFMailComposeViewController

I can

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.


回答1:


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?



来源:https://stackoverflow.com/questions/12711085/ios-mfmailcomposeviewcontroller-and-getting-users-name-from-contact-card

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!