Eureka: How to change textRow detailTextLabel color

Created on 5 May 2017  路  2Comments  路  Source: xmartlabs/Eureka

TextRow.defaultCellUpdate = { cell, row in
            if !row.isValid {
                cell.titleLabel?.textColor = .red
            }
            cell.detailTextLabel.textColor = Background_Color
 }

This is my code, i can change ActionSheetRow detailTextLabel color ,but i can not change TextRow color

Stack Overflow appearance FieldRow

Most helpful comment

For Rows with Inputs, you need to access the UITextField

ie.

        TextRow.defaultCellUpdate = { cell, _ in
            cell.textField.textColor = .red
        }

All 2 comments

For Rows with Inputs, you need to access the UITextField

ie.

        TextRow.defaultCellUpdate = { cell, _ in
            cell.textField.textColor = .red
        }

@KieSun Please ask this kind of general Eureka question on stackoverflow as contribution guidelines indicates so all Eureka community can help.

Thanks

Was this page helpful?
0 / 5 - 0 ratings