有没有办法在iOS8中更改日期 Select 器的文本 colored颜色 ?我知道这在iOS7和之前的版本中是不可能的,在第8版中有什么改变吗?
例如,我在Yahoo Weather中发现了修改过的 Select 器!
有没有办法在iOS8中更改日期 Select 器的文本 colored颜色 ?我知道这在iOS7和之前的版本中是不可能的,在第8版中有什么改变吗?
例如,我在Yahoo Weather中发现了修改过的 Select 器!
在stackoverflow的comments处找到了解决方案.如果你需要
我发现选定数字的两行 colored颜色 仍然是灰色的.
class ColoredDatePicker: UIDatePicker {
var changed = false
override func addSubview(view: UIView) {
if !changed {
changed = true
self.setValue(UIColor.whiteColor(), forKey: "textColor")
}
super.addSubview(view)
}
}