UIMailComposeViewController 中的透明按钮

Transparent buttons in UIMailComposeViewController

我实际上遇到了与 this and this Whosebug 问题相反的问题。我的 MFMailComposeViewController 实例上的 'Cancel' 和 'Send' 按钮都是透明的。我附上了截图来展示这一点。

当我设置 MFMailComposeViewController 的实例时,我没有任何代码更改系统默认颜色。如何确保这些按钮是系统默认颜色?

正如@Krumelur 所建议的,外观选项是在我的应用程序的其他地方设置的。覆盖这些选项的解决方案是在初始化 MFMailComposeViewController 实例的方法中插入以下行:

mailComposer.navigationBar.tintColor = [UIColor blackColor];