How to change the datepicker current date text col

2019-09-01 06:38发布

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

1条回答
萌系小妹纸
2楼-- · 2019-09-01 07:36

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"];

查看更多
登录 后发表回答