问题
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