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.
我正在尝试将电子邮件发送功能添加到我的应用程序
现在我从教程中尝试了一些东西,但不幸的是没有成功
现在我首先希望能够messageUI使用我设置的按钮弹出,但我不能,因为一旦我写,mailComposer.mailComposeDelegate = self我就会收到一个错误,说委托不能。我也需要添加MFMailComposeViewController到我的类中,但我得到了多重继承ViewController
messageUI
mailComposer.mailComposeDelegate = self
MFMailComposeViewController
ViewController
任何帮助,将不胜感激
谢谢
class testViewContoller : UIViewController, MFMailComposeViewControllerDelegate { func tapButton() -> Void { var mailVC = MFMailComposeViewController() mailVC.mailComposeDelegate = self self.presentViewController(mailVC, animated:false, completion:nil) } }