ios - 更改 MDCTextField 轮廓文本字段的活动边框颜色
解决方案
这是一个解决方案,对我有用
let textField = MDCOutlinedTextField(frame: .zero)
textField.setOutlineColor( .black, for: .editing)
textField.setOutlineColor( .red , for: .disabled)
textField.setOutlineColor( .red , for: .normal)
推荐阅读
- android - 找不到正确的 ScopedModel
- data-structures - 如何优化用于计算 K 近邻算法的算法?
- php - php - 包含“if”条件的 while 语句被数据库中的第一项阻塞并且不递增
- numpy - 'tuple' object has no attribute 'reshape'
- bazel - 如何使用 Bazel 包含已构建的静态库(.a 文件)?
- python - 如何在 jupyter 中添加 conda 环境
- python - 如何将(索引)列表输入到 ndarray 以访问元素?
- python - 将元组元素连接为字符串,其中一个元素是字符串,另一个元素是整数元组
- syntax - Error (10500): VDHL code line 88 (Quartus)
- javascript - 5.2 Eloquent Javascript - 第三版