iOS - 发送电子邮件
-
简述
我们可以使用 iOS 设备的电子邮件应用程序发送电子邮件。 -
涉及步骤
步骤 1 - 创建一个简单的 View based application.步骤 2 - 选择您的项目文件,然后选择目标,然后添加 MessageUI.framework.步骤 3 - 添加一个按钮 ViewController.xib 并创建用于发送电子邮件的操作。步骤 4 − 更新 ViewController.h 如下 -步骤 5 − 更新 ViewController.m 如下 - -
输出
当我们运行应用程序时,我们将获得以下输出 -单击发送电子邮件后,我们将获得以下输出 -