ios - 如何更改 XLForm 禁用的行文本颜色 [XLFormRowDescriptorTypeText]

标签 ios xlform

我有一个禁用行:

XLFormRowDescriptor *row = ... XLFormRowDescriptorTypeText ...
row.disabled = @YES

默认情况下,禁用行的颜色为灰色,但我需要更改其默认颜色。

我尝试设置它的 'textField.textColor' ,但这不起作用。

我的问题是,如何更改默认颜色?

最佳答案

这对我有用:

XLFormRowDescriptor *row = ... XLFormRowDescriptorTypeText ... row.disabled = @YES

[row.cellConfigIfDisabled setObject:[UIColor redColor] forKey:@"textLabel.textColor"];

关于ios - 如何更改 XLForm 禁用的行文本颜色 [XLFormRowDescriptorTypeText],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32597822/

相关文章:

ios - XLForm 单元格行数

ios - XLForm - 根据用户输入动态添加行

ios - XLForm 检测到行值的更改

ios - 如果向上滚动,UITableview header 不会再次显示

ios - 如何获取 UITableViewCell 中 UIButton 的 indexPath?

ios - UITabBar 宽度不随屏幕尺寸增加

ios Swift XLForm - 符合协议(protocol) XLFormOptionObject

ios - 如何在 TableView Controller 后面应用渐变?

iOS 动画 2D 游戏

internationalization - xlf/xmb 文件的工具