问题
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
Not current date text color:
回答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"];
来源:https://stackoverflow.com/questions/31736668/how-to-change-the-datepicker-current-date-text-color