Set the To: field as the first responder in the MFMailComposeViewController

Does anyone have any ideas on the right path? There is one answer to a similar question, but it is so confusing, I can not imagine that he is right. There should be an easier way to just show the keyboard when this modal view appears. is not it?

+6
ios iphone ipad messageui
source share
2 answers
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@"Mail subject"]; [picker setToRecipients:[NSArray arrayWithObjects:@" email@email.com ",nil]]; 
+7
source share

I also wanted to know how and how it works: Install the first responder in the MFMailComposeViewController? NB is my comment on using MFRecipientTextField rather than RecipientTextField Not sure if Apple will abandon the App Store, but worth a try! *

* Update - Apple has approved my application, so it looks like how to use it (at least for now!)

0
source share

All Articles