How to detect delete key on an UITextField in iOS 8?
问题 I have subclassed UITextField and implemented the UIKeyInput protocol's deleteBackward method to detect backspace being pressed. This works fine on iOS 7 but not on iOS 8. deleteBackward is not called on the UITextField anymore when I press the backspace key. I've checked the documentation and the release notes and nothing points to the reason why this could happen. Any pointers? 回答1: You must look an example for MBContactPicker on github. Deletion of contacts at MBContactPicker via Backspace