jdleung
jdleung

Reputation: 1098

How to change the datepicker current date text color?

Since using datepicker with a dark background color, I set its textColor to white. All the date text shows what I want except the current date. If today is 7/23/2015, its text will be black but not white.

I tried and found no solution, anyone can help?

Current date text color

current date text color

Not current date text color:

not current date text color

Upvotes: 0

Views: 1001

Answers (1)

When you initialize date picker at the same time write the below code or if you had taken datePicker from IBOutlet write it in viewDidLoad [yourDatePicker setValue:[UIColor whiteColor] forKey:@"textColor"];

Upvotes: 0

Related Questions