access default email address

后端 未结 3 1484
庸人自扰
庸人自扰 2020-12-31 23:14

I am using the MFMailComposeViewController in 3.0 to send an email with attachment etc. inside my app. I would like the \"To:\" address to be defaulted to the default accou

3条回答
  •  失恋的感觉
    2020-12-31 23:52

    It appears that the accepted answer is wrong

    Getting user's default email address in Cocoa

    This answer shows the code for getting the e-mail address from the address book ( listed under 'me' )

    EDIT: Note the comment! OSX only not iOS :|

提交回复
热议问题