Is it possible to get the email address which the user has entered?
I know it’s possible to set the email address but there is no method to get one.
Is there any know solution for that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to the documentation, there is not.
The remaining stuff I mention for the sake of answering the question, but I don’t recommend that you do this, because it’s likely to get your app rejected from the store.
It’s possible that
MFMailComposeViewControlleris set up in such a way that thetoRecipientsis implemented internally as an@property. If that’s the case, you can probably do something like:If that doesn’t work, you could maybe start finding ways to introspect the viewController’s
_internalivar, or maybe just walk the view hierarchy yourself until you find what you’re looking for.