Hi,
I'm using a MFMailComposeViewController
in my iphone app and I'd like to give the user the choice to attach some pictures to the e-mail.
As there is no specific button by default, I was thinking about subclassing MFMailComposeViewController
and adding a button for this. Unfortunately, according to the documentation the addAttachmentData:
method shouldn't be called once the view has been displayed, so the choice can not be made during the mail composition.
I also thought about creating my own mail composer view, but according to this question: http://stackoverflow.com/questions/1263412/send-mail-without-mfmailcomposeviewcontroller , Apple does not want developers to do this as this could be used to abuse the user's mail account.
So, it seems the only solution is to ask the user prior to showing up MFMailCompose, and the only way for the user to change his choice would be to cancel mail composition and start it again, am I right?