1

Hi I have a need to detect backspace button event on textfield.

Common way to detect the backspace is to add the whitespace and see the changed text.

But As the textfield is secured textfield.adding the whitespace trick won't work out.

Any helpful suggestions are welcome

Edit - don't close :

This is not a duplicate question because its about doing it on secured textfield and this is not a duplicate of below questions

Detect backspace in UITextField

How to detect delete key on an UITextField in iOS 8?

Community
  • 1
  • 1
Shiva
  • 545
  • 1
  • 10
  • 41
  • See http://stackoverflow.com/questions/25371254/how-to-detect-delete-key-on-an-uitextfield-in-ios-8 – Sulthan Apr 07 '17 at 20:23
  • Are you asking about detecting when text is deleted or when the backspace is tapped when the textfield is already empty? – rmaddy Apr 07 '17 at 20:34
  • @rmaddy - Yes,in a secured textfield – Shiva Apr 07 '17 at 21:45
  • So you need to do both things I asked about in my comment? – rmaddy Apr 07 '17 at 21:53
  • just when backspace is pressed not necessary a text has to be removed... i should be able to detect even when textbox is empty – Shiva Apr 07 '17 at 21:56
  • @rmaddy - any idea how it can be done in a secured textbox – Shiva Apr 10 '17 at 15:10
  • Isn't your question a duplicate of this? http://stackoverflow.com/q/16765334/2415822 (Or some of the other linked questions in that question) – JAL Apr 11 '17 at 14:09

0 Answers0