You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
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?