I am creating a table view with UITextFields dynamically.
UITextField
l_textField = [[UITextField alloc] initWithFrame:TextFieldFrame]; l_textField.tag = cellRo
change [field resignFirstResponder]; with [field becomeFirstResponder];
[field resignFirstResponder];
[field becomeFirstResponder];
resignFirstResponder is used to remove keyboard (focus) from text field
resignFirstResponder