How to change the datepicker current date text color?

若如初见. 提交于 2019-12-13 07:24:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!