Sumit Sharma :
u can do this set \n\nyourtextfieldname.delegate=self;\n\n\nwhen u hide your keyboard.. then u can call that textfield and do this code... \n\n [txtfieldname resignFirstResponder];\n\n\nor u can try this.. also \n\n- (void)textFieldDidEndEditing:(UITextField *)textField\n{\n [yourtextfieldname resignFirstResponder];\n}\n\n\nor best method\n\n-(BOOL)textfieldshouldreturn:(UITextField *)textField\n{\n [textField resignFirstResponder];\n }\n",
2014-09-12T05:39:33
Ramya Yenduri :
If you are using keyboard done button, set the delegate to the textfield\n\ntexfield.delegate = self;\n\n\nthen the below method will be called when done button is clicked \n\n-(BOOL)textFieldShouldReturn:(UITextField *)textField\n\n{\n\n [textField resignFirstResponder];\n return YES;\n\n}\n\n\nIf you are using done button on a toolbar created by you then add a target to the doneButton then call below method in the selector\n\n[textField resignFirstResponder];\n",
2014-09-12T05:57:41