从 iPhone 设置获取邮件
有什么方法可以在 iPhone 设置中创建我的个人电子邮件帐户吗?
我正在制作一个发送邮件的应用程序,并且想要选择我在 iPhone 上拥有的电子邮件帐户之一来发送,然后选择我的议程的目的地。
谢谢
there any way to get my personal email accounts created in the iphone settings ??
I am making an application to send mail and would like to select one of the email accounts I have on my iPhone to send and then select the destianatorios of my agenda.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太确定你想要做什么,但 iOS 提供了多种显示电子邮件撰写视图控制器的方法,以及访问用户保存在他/她的 iDevice 上的联系人的方法。
要显示邮件撰写视图,请在项目中创建一个到
MessageUI.framework
的弱链接(最好使用弱链接,因为MessageUI.framework
在非常旧的版本上不可用iOS 版本),然后执行如下操作:如果您想访问 iDevice 上的联系人,请将
AddressBook.framework
链接到您的项目中。您可以按照 Apple 的编程指南。例如,您可以获取所有联系人的数组,如下所示:我希望您可以通过使用上述组合来实例化具有特定联系人的邮件撰写视图。希望这有帮助!
I'm not exactly sure what you're trying to do, but iOS offers several ways to display an email composition view controller, as well as methods to access the contacts a user has saved on his /her iDevice.
To display a mail composition view, make a weak link to the
MessageUI.framework
in your project (a weak link is preferred since theMessageUI.framework
is not available on very old iOS versions), then do something like this:If you want to access contacts on the iDevice, link
AddressBook.framework
into your project. You can access the values on the device by following the instructions in Apple's programming guide. For example, you can get an array of all contacts like so:I expect you can instantiate a mail composition view with a specific contact by using a combination of the above. Hope this helps!