I've been having some trouble trying to set the UIDatePicker
font and color, but colour of label
today in datePicker
is not changed. Everything else in my app was fairly straightforward to adjust, except this. Does anybody know how to do this?
func updatedatePicker(){
DatePicker.setValue(UIColor.whiteColor(), forKeyPath: "textColor")
DatePicker.setValue(1, forKeyPath: "alpha")
}
In viewDidLoad()
:-
DatePicker.addTarget(self, action: #selector(ViewController.updatedatePicker), forControlEvents: UIControlEvents.ValueChanged)