access default email address

后端 未结 3 1487
庸人自扰
庸人自扰 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:35

    You can use ABGetMe for iOS to get the user's address book card. Have a look at the source code, you will see how to retrieve all e-mail addresses for a given ABRecordRef.

提交回复
热议问题