Cocoa Dev
Cocoa Dev

Reputation: 9541

iOS MFMailComposeViewController and getting users Name from contact card

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.

Upvotes: 0

Views: 818

Answers (1)

Christopher Pickslay
Christopher Pickslay

Reputation: 17772

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?

Upvotes: 2

Related Questions