demetrio812 / EurekaSwiftValidatorComponents

Eureka custom inline rows supporting SwiftValidator
MIT License
15 stars 5 forks source link

the value in a text field is alway show old value #5

Open peerasak-u opened 8 years ago

peerasak-u commented 8 years ago

I've tried to set value in row when I create form but the value is still shown overlay textfield when I edit it.

Platform: iOS 9.3

simulator screen shot may 18 2559 be 3 46 49 pm

peerasak-u commented 8 years ago

it's a detailTextLabel overlay on UITextField form is function

    public override func update(){
        super.update()
        textLabel?.text = row.title
        if !valid && autoValidation {
            textLabel?.textColor = row.isDisabled ? .grayColor() : errorColor
        } else {
            textLabel?.textColor = row.isDisabled ? .grayColor() : .blackColor()
        }
        detailTextLabel?.text = row.displayValueFor?(row.value)
    }
xcriss commented 8 years ago

Did you resolve this issue?

demetrio812 commented 7 years ago

Hello, will check it and let you know...

Cheers, Dem