0

When I changed UIDatePicker textColor, but the "AM PM" color not change, how to fix it I use this code:

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

enter image description here

Andriy
  • 2,767
  • 2
  • 21
  • 29

1 Answers1

0

Have you tried by applying tintColor to datePicker?

You should try it like,

datePicker.tintColor = UIColor.whiteColor()

This will change your datePicker colour. Hope this will help you.

Jigar Tarsariya
  • 3,189
  • 3
  • 14
  • 38