【发布时间】:2018-03-11 15:34:31
【问题描述】:
我搜索了一种方法来做到这一点,但没有找到答案!我可以更改按钮的背景颜色,但不能更改箭头颜色。
到目前为止,我已经这样做了:
let alert: UIAlertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
alert.view.tintColor = themeTextColor
alert.view.backgroundColor = themeDialog
我也试过这个:
alert.popoverPresentationController?.backgroundColor = themeDialog
但它不会改变任何东西。
结果如下:
看到白色区域了吗?
【问题讨论】:
标签: ios swift uialertcontroller