Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我似乎找不到人们特别说您无法从 MFMailComposeViewController 获取默认用户邮件的任何地方。所以我只是创建这个线程来确保。
不,没有办法在MFMailComposeViewController. 您只能设置“收件人”和“抄送”字段。如果您计划设置的“发件人”邮件 ID 未在设备中配置,这是可以理解的。
MFMailComposeViewController
设备将使用用户的默认邮件 ID 自动填充 from 字段。一旦出现,用户可以在不同的 id 之间切换MFMailComposeViewController。