I have a problem when trying to delete a character from a secured textField text.
I want to capture the text in textFieldShouldChangeCharactersInRange
delegate method, but the problem is that for secured textFields there is a problem.
When I tap on the secured textField and delete on character from the textField's text, visually all the textField text disappears (this is by default for secured text fields).
The problem is that the text returned in textFiledShouldChangeCharactersInRange
is not an empty text, but is the text without the removed character. So the problem is that visually there is no text left in the text field, but the text returned by the delegate method mentioned above is not nil, or empty.
I want to ask if is there any possibility to capture the correct text.
If something is not clear please ask and I will respond.
Thank you very much!