Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当iOS中的文本字段为空时,当按下键盘的十字按钮时,我在查找调用哪个委托方法时遇到了问题。当文本字段不为空时,它调用方法
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { }
请帮我解决这个问题
- (BOOL)textFieldShouldClear:(UITextField *)textField;