I have a UITableView with some cells containing UITextField objects and others with UIButton objects. When one of the textFields is first responder (keyboard showing) i am having trouble resigning its first responder status. When a user clicks or touches a button in another cell, the textField is still not resigning even though i am calling [textField resignFirstResponder]
on the 'did end on exit' and 'Editing did end' events. I am also calling [button becomeFirstResponder]
when the button is clicked. I guess it has to do with objects being in different cells. any ideas?
EDIT:
i am resigning the first responder like this:
-(IBAction)endEditing:(id)sender {
UITextField *textField = (UITextField *)sender;
[textField resignFirstResponder];
}
the endEditing:
method is called on both UITextField events: 'did end on exit' and 'Editing did end'.