更改了UIDatePick textColor但AM PM颜色没有变化

时间:2016-05-27 08:11:09

标签: swift uidatepicker

当我更改UIDatePicker textColor,但是" AM PM"颜色没有变化,如何修复它 我使用这段代码:

datePicker.setValue(UIColor.whiteColor(), forKey: "textColor")

enter image description here

1 个答案:

答案 0 :(得分:0)

您是否尝试过将tintColor应用于datePicker?

你应该尝试一下,

datePicker.tintColor = UIColor.whiteColor()

这会改变你的datePicker颜色。希望这会对你有所帮助。

相关问题