开发者

UIDatePicker highlights today's date - how can i change that color?

开发者 https://www.devze.com 2023-03-28 14:14 出处:网络
UIDatePicker highlights today\'s date in it\'s blue color, but I\'d like it to use a different c开发者_如何转开发olor for this. How can i change it?You can\'t, not without recreating UIDatePicker from

UIDatePicker highlights today's date in it's blue color, but I'd like it to use a different c开发者_如何转开发olor for this. How can i change it?


You can't, not without recreating UIDatePicker from scratch. If you want this ability, please request it at http://bugreport.apple.com.


It seems UIDatePicker is not customizable via a delegate like UIPickerView. If you need this functionality, your best bet is probably to create your own custom date picker from a UIPickerView.

You'll have to code up all the date logic though.

If you need more help. Please refer to this link:

How to change Font of UIDatePicker?

Remove UIDatePicker's color

Hope this helps you.

0

精彩评论

暂无评论...
验证码 换一张
取 消