I have a UITextField instance with secureTextEntry = YES
. When the field first gains focus any keypress will clear the field, as appears to be standard behavior on iOS.
As far as I can tell, UIControlEventEditingChanged
is not triggered. I have also tried subscribing to UIControlEventAllEditingEvents
but it appears not to be triggered. This is causing an issue for me since I'm relying on knowing when the field is edited to set the enabled
attribute of a UIButton.
Is there an event which is fired when the field is cleared in this way?
They context around my issue can be seen in this GitHub issue.
You can use the UITextField's delegate: