objective-c - 如何仅更改 UIDatePicker 中所选日期的文本颜色
问题描述
我一直在寻找解决方案,但没有发现任何对我有用的东西。
这是我的问题。我有一个 UIDatePicker,我只想更改所选日期文本的颜色。我用了这段代码
[self.datePicker setValue:COLOR_ORANGE forKeyPath:@"textColor"];
SEL selector = NSSelectorFromString( @"setHighlightsToday:" );
NSInvocation *invocation = [NSInvocation invocationWithMethodSignature :
[UIDatePicker
instanceMethodSignatureForSelector:selector]];
解决方案
推荐阅读
- java - 在 intellj idea 中连接到远程 H2 数据库
- ansible - Ansible 没有选择 group_vars 和 host_vars
- c# - 在 ubuntu 18.04 上安装 z3
- java - 广播接收器在 Android Studio 4.0.0 中不起作用
- command - 如何解决“‘takeown’不被识别为内部或外部命令”
- java - Android - 即使调用 onMapReady 并且 GoogleMap 不为空,Google 地图仍为空白
- vue.js - 如何将输入数据值从子组件数据对象发送到父组件?
- c# - TextBox.Text 返回空字符串
- plc - 从数据点计算加速度
- javascript - Java 11 中的 Nashorn 在评估命名函数时的行为与 Java 8 不同