How to know when the delete button on decimal pad is clicked
问题 I have four textField s and each takes only one character, similar to the lock screen. I can input and move from one textField to next textField . Problem is when I want to delete and move to previous textField , I don't know when the delete button is clicked. I'm using: func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool to input and move from one textField to another. How do I know when the delete key is pressed? 回答1