Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting the Recepients list in MFMailComposeViewController

I am using MFMailcomposerViewController in my App. Everything is working fine, except that I am in need to Have the no. of recipients and the list of recipients the user is sending to. Any help or solution regarding this issue..

like image 525
vishwa.deepak Avatar asked Jan 24 '12 10:01

vishwa.deepak


1 Answers

I dont there is a standard way to do this, the delegate method mailComposeController:didFinishWithResult:error: gives you a reference to the composer view controller after it has been dismissed, but there are no accessors on MFMailComposeViewController which you could use to get the recipient count

A workaround would be to examine the subviews of the view controller, find the text field which was used to hold the recipients and get the text: see here

like image 174
wattson12 Avatar answered Nov 11 '22 04:11

wattson12