I have a UITableView contained in every cell of a UITextField . When the user clicks on the UITextField , as expected, the keyboard will pop up.
I used the tableView: didSelectRowAtIndexPath: method in my deletion to reject the keyboard using resignFirstResponder sent to the last UITextField .
Everything works fine if the cell with the last UITextField .
Now, if I scroll the bottom of the table and click on a row, then resignFirstResponder sent to the hidden UITextField and does not hide the keyboard. It also does not cause errors.
How can I hide the keyboard in such cases?
source share