草庐IT

SKPSMTPMessageDelegate

全部标签

ios - 如何在 Swift 中使用 SKPSMTPMessageDelegate 协议(protocol)?

我正在使用SKPSMTPMessage发送邮件,但是当我添加函数时我需要SKPSMTPMessageDelegate。我添加这个:classViewController:UIViewController,SKPSMTPMessageDelegate但我收到错误:类型“ViewController”不符合协议(protocol)“SKPSMTPMessageDelegete”我不知道如何添加它,因为我需要在@objc协议(protocol)中写入什么??@objcprotocolSKPSMTPMessageDelegate{//codehere?}谢谢! 最佳