更改MFMailComposeViewController取消操作表按钮文本颜色

问题描述

在MFMailComposeViewController()上点击“取消”按钮时,出现的操作表带有白色背景和白色标签。如何更改显示的操作表中的文本颜色

我正在使用简单的代码(见下文)

ps。我不是要更改取消按钮的颜色,而只是要更改操作表中弹出的按钮。

func sendEmail() {

    if MFMailComposeViewController.canSendMail() {
        let mail = MFMailComposeViewController()
        mail.mailComposeDelegate = self
        mail.setToRecipients(["email@mysite.com"])
        mail.setMessageBody("Message Body",isHTML: true)

        present(mail,animated: true)
    } else {
        // show failure alert
    }
}

func mailComposeController(_ controller: MFMailComposeViewController,didFinishWith result: MFMailComposeResult,error: Error?) {
    controller.dismiss(animated: true)
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)