Clear text in text box

I am currently creating a custom keyboard and I am almost ready. One of the problems I have is the delete button. When the user deletes the delete button, he does what he has to do and deletes the previous text entry. However, when the user holds the button down, nothing happens. How to make sure that when the user holds the delete button, the keyboard is continuously deleted, as on a standard ios keyboard?

+1
source share
1 answer

You must also register for the action UIControlEventTouchDownRepeatfor the delete button below.

[deleteButton addTarget:self action:@selector(deleteCharacter:) forControlEvents:UIControlEventTouchDownRepeat];
0
source

All Articles