Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

When textField is edited #138

@dumdumgum

Description

@dumdumgum

I want to know if KVOController can be used in textField editing?

var textField: UITextField?
kvoController.observe(textField, keyPath: "text", options: .new) { (viewController, object, change) in
self.SureButton.backgroundColor = UIColor.red
}
When textField completes the editing, the first response is cancelled, and the color of the button changes.

But I want to realize that when textField edit, change the color of the button, how to use it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions