如何解决更改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 举报,一经查实,本站将立刻删除。