【问题标题】:How to change XLForm disabled row text color [XLFormRowDescriptorTypeText]如何更改 XLForm 禁用的行文本颜色 [XLFormRowDescriptorTypeText]
【发布时间】:2015-09-16 00:29:58
【问题描述】:

我有一个禁用的行:

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

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

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

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

【问题讨论】:

    标签: ios xlform


    【解决方案1】:

    这对我有用:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-20
      • 2020-04-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多