swift - textShouldEndEditing does not work with stepper -
i working swift 4 macos , have view controller content:
i have textfield , stepper. can change value of textfield manually or stepper.
i print result, if value of textfield did change. tried delegate methode:
func control(_ control: nscontrol, textshouldendediting fieldeditor: nstext) -> bool { print("value changed") return true } if change manually => "value changed"
if change stepper => no "value changed"
how can solve issue?
the stepper doesn't edit textfield. if change value of textfield in code you're aware of change.
Comments
Post a Comment