我想从我的应用程序发送邮件。我正在SWIFT迈出第一步,但我一直卡在某个点上。我想按下一个按钮并打开邮件。你能告诉我如何进行按钮连接吗?我认为这应该是一个Action,但我不知道把它放在代码的什么地方importUIKitimportMessageUIclassViewController:UIViewController,MFMailComposeViewControllerDelegate{funcsendEmail(){letmailVC=MFMailComposeViewController()mailVC.mailComposeDelegate=selfmailVC.setT
我想从我的应用程序发送邮件。我正在SWIFT迈出第一步,但我一直卡在某个点上。我想按下一个按钮并打开邮件。你能告诉我如何进行按钮连接吗?我认为这应该是一个Action,但我不知道把它放在代码的什么地方importUIKitimportMessageUIclassViewController:UIViewController,MFMailComposeViewControllerDelegate{funcsendEmail(){letmailVC=MFMailComposeViewController()mailVC.mailComposeDelegate=selfmailVC.setT