UIDatePicker 突出显示今天的日期 - 我如何更改该颜色?
UIDatePicker 以蓝色突出显示今天的日期,但我希望它使用不同的颜色。我怎样才能改变它?
UIDatePicker highlights today's date in it's blue color, but I'd like it to use a different color for this. How can i change it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不能,除非从头开始重新创建
UIDatePicker
。如果您需要此功能,请访问 http://bugreport.apple.com 请求。You can't, not without recreating
UIDatePicker
from scratch. If you want this ability, please request it at http://bugreport.apple.com.似乎
UIDatePicker
无法通过像UIPickerView
这样的委托进行自定义。如果您需要此功能,最好的选择可能是从UIPickerView
创建您自己的自定义日期选择器。不过,您必须编写所有日期逻辑。
如果您需要更多帮助。请参考此链接:
如何更改 UIDatePicker 的字体?
删除UIDatePicker的颜色
希望这对您有帮助。
It seems
UIDatePicker
is not customizable via a delegate likeUIPickerView
. If you need this functionality, your best bet is probably to create your own custom date picker from aUIPickerView
.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.