1

Wakemate does an amazing job of auto-populating a users email address in a Feedback form in an iphone app. See here:

Does anyone know how to do this (with the caveat that we are using Facebook Connect for login)?

enter image description here

Matt
  • 22,721
  • 17
  • 71
  • 112
scottorn
  • 51
  • 5

2 Answers2

2

I think you should read Apple docs it will help you and more over the ui that is being used here is just because they probably subclassed MFMailComposeViewController

Inder Kumar Rathore
  • 39,458
  • 17
  • 135
  • 184
  • Thanks Inder! I had already read that and we prepared that. However, I think it's more natural for the user to see the form and type into it. I don't want to take them away from the App. We may never get them back. – scottorn Apr 05 '11 at 06:22
2

You can use this block of code for your purpose.

picker.mailComposeDelegate = self;
NSArray *toRecipients = [NSArray arrayWithObject:@"abcd@xyz.com"];
NSString *tosubject =txtSubject.text;
[picker setSubject:tosubject];


// Set up recipients
[picker setToRecipients:toRecipients];

Cheers

Aditya
  • 4,414
  • 5
  • 29
  • 40