我有UITableView两个Custom Cells。其中一个Custom Cells包含一个UITextField.
当按下返回按钮时,我遇到了隐藏键盘的问题。
- (IBAction)textFieldDoneEditing:(id)sender {
[sender resignFirstResponder];
}
通常我会使用它,但它从未被调用过。我将它与Editing Did End事件联系起来。
是因为我用了一个Custom Cell?
我有UITableView两个Custom Cells。其中一个Custom Cells包含一个UITextField.
当按下返回按钮时,我遇到了隐藏键盘的问题。
- (IBAction)textFieldDoneEditing:(id)sender {
[sender resignFirstResponder];
}
通常我会使用它,但它从未被调用过。我将它与Editing Did End事件联系起来。
是因为我用了一个Custom Cell?